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

There is a newer version: 0.3.23
Show 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.ProvidedSource}
   */
  public enum ProvidedSource
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * PROVIDED_SOURCE_NOT_SET = 0;
     */
    PROVIDED_SOURCE_NOT_SET(0),
    /**
     * ENV_VAR = 1;
     */
    ENV_VAR(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * PROVIDED_SOURCE_NOT_SET = 0;
     */
    public static final int PROVIDED_SOURCE_NOT_SET_VALUE = 0;
    /**
     * ENV_VAR = 1;
     */
    public static final int ENV_VAR_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ProvidedSource valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static ProvidedSource forNumber(int value) {
      switch (value) {
        case 0: return PROVIDED_SOURCE_NOT_SET;
        case 1: return ENV_VAR;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        ProvidedSource> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public ProvidedSource findValueByNumber(int number) {
              return ProvidedSource.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return cloud.prefab.domain.Prefab.getDescriptor().getEnumTypes().get(0);
    }

    private static final ProvidedSource[] VALUES = values();

    public static ProvidedSource valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private ProvidedSource(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:prefab.ProvidedSource)
  }

  /**
   * Protobuf enum {@code prefab.ConfigType}
   */
  public enum ConfigType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * proto null
     * 
* * NOT_SET_CONFIG_TYPE = 0; */ NOT_SET_CONFIG_TYPE(0), /** * CONFIG = 1; */ CONFIG(1), /** * FEATURE_FLAG = 2; */ FEATURE_FLAG(2), /** * LOG_LEVEL = 3; */ LOG_LEVEL(3), /** * SEGMENT = 4; */ SEGMENT(4), /** * LIMIT_DEFINITION = 5; */ LIMIT_DEFINITION(5), /** * DELETED = 6; */ DELETED(6), UNRECOGNIZED(-1), ; /** *
     * proto null
     * 
* * NOT_SET_CONFIG_TYPE = 0; */ public static final int NOT_SET_CONFIG_TYPE_VALUE = 0; /** * CONFIG = 1; */ public static final int CONFIG_VALUE = 1; /** * FEATURE_FLAG = 2; */ public static final int FEATURE_FLAG_VALUE = 2; /** * LOG_LEVEL = 3; */ public static final int LOG_LEVEL_VALUE = 3; /** * SEGMENT = 4; */ public static final int SEGMENT_VALUE = 4; /** * LIMIT_DEFINITION = 5; */ public static final int LIMIT_DEFINITION_VALUE = 5; /** * DELETED = 6; */ public static final int DELETED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConfigType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ConfigType forNumber(int value) { switch (value) { case 0: return NOT_SET_CONFIG_TYPE; case 1: return CONFIG; case 2: return FEATURE_FLAG; case 3: return LOG_LEVEL; case 4: return SEGMENT; case 5: return LIMIT_DEFINITION; case 6: return DELETED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ConfigType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ConfigType findValueByNumber(int number) { return ConfigType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.getDescriptor().getEnumTypes().get(1); } private static final ConfigType[] VALUES = values(); public static ConfigType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ConfigType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.ConfigType) } /** * Protobuf enum {@code prefab.LogLevel} */ public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET_LOG_LEVEL = 0; */ NOT_SET_LOG_LEVEL(0), /** * TRACE = 1; */ TRACE(1), /** * DEBUG = 2; */ DEBUG(2), /** * INFO = 3; */ INFO(3), /** *
     * NOTICE = 4;
     * 
* * WARN = 5; */ WARN(5), /** * ERROR = 6; */ ERROR(6), /** *
     * CRITICAL = 7;
     * ALERT = 8;
     * 
* * FATAL = 9; */ FATAL(9), UNRECOGNIZED(-1), ; /** * NOT_SET_LOG_LEVEL = 0; */ public static final int NOT_SET_LOG_LEVEL_VALUE = 0; /** * TRACE = 1; */ public static final int TRACE_VALUE = 1; /** * DEBUG = 2; */ public static final int DEBUG_VALUE = 2; /** * INFO = 3; */ public static final int INFO_VALUE = 3; /** *
     * NOTICE = 4;
     * 
* * WARN = 5; */ public static final int WARN_VALUE = 5; /** * ERROR = 6; */ public static final int ERROR_VALUE = 6; /** *
     * CRITICAL = 7;
     * ALERT = 8;
     * 
* * FATAL = 9; */ public static final int FATAL_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LogLevel valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LogLevel forNumber(int value) { switch (value) { case 0: return NOT_SET_LOG_LEVEL; case 1: return TRACE; case 2: return DEBUG; case 3: return INFO; case 5: return WARN; case 6: return ERROR; case 9: return FATAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LogLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LogLevel findValueByNumber(int number) { return LogLevel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.getDescriptor().getEnumTypes().get(2); } private static final LogLevel[] VALUES = values(); public static LogLevel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LogLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.LogLevel) } /** * Protobuf enum {@code prefab.OnFailure} */ public enum OnFailure implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET = 0; */ NOT_SET(0), /** * LOG_AND_PASS = 1; */ LOG_AND_PASS(1), /** * LOG_AND_FAIL = 2; */ LOG_AND_FAIL(2), /** * THROW = 3; */ THROW(3), UNRECOGNIZED(-1), ; /** * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** * LOG_AND_PASS = 1; */ public static final int LOG_AND_PASS_VALUE = 1; /** * LOG_AND_FAIL = 2; */ public static final int LOG_AND_FAIL_VALUE = 2; /** * THROW = 3; */ public static final int THROW_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OnFailure valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static OnFailure forNumber(int value) { switch (value) { case 0: return NOT_SET; case 1: return LOG_AND_PASS; case 2: return LOG_AND_FAIL; case 3: return THROW; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OnFailure> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public OnFailure findValueByNumber(int number) { return OnFailure.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.getDescriptor().getEnumTypes().get(3); } private static final OnFailure[] VALUES = values(); public static OnFailure valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private OnFailure(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.OnFailure) } public interface ConfigServicePointerOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigServicePointer) com.google.protobuf.MessageOrBuilder { /** * int64 project_id = 1; * @return The projectId. */ long getProjectId(); /** * int64 start_at_id = 2; * @return The startAtId. */ long getStartAtId(); /** * int64 project_env_id = 3; * @return The projectEnvId. */ long getProjectEnvId(); } /** * Protobuf type {@code prefab.ConfigServicePointer} */ public static final class ConfigServicePointer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigServicePointer) ConfigServicePointerOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigServicePointer.newBuilder() to construct. private ConfigServicePointer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigServicePointer() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigServicePointer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigServicePointer.class, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; private long projectId_ = 0L; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } public static final int START_AT_ID_FIELD_NUMBER = 2; private long startAtId_ = 0L; /** * int64 start_at_id = 2; * @return The startAtId. */ @java.lang.Override public long getStartAtId() { return startAtId_; } public static final int PROJECT_ENV_ID_FIELD_NUMBER = 3; private long projectEnvId_ = 0L; /** * int64 project_env_id = 3; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (projectId_ != 0L) { output.writeInt64(1, projectId_); } if (startAtId_ != 0L) { output.writeInt64(2, startAtId_); } if (projectEnvId_ != 0L) { output.writeInt64(3, projectEnvId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectId_); } if (startAtId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startAtId_); } if (projectEnvId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, projectEnvId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigServicePointer)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigServicePointer other = (cloud.prefab.domain.Prefab.ConfigServicePointer) obj; if (getProjectId() != other.getProjectId()) return false; if (getStartAtId() != other.getStartAtId()) return false; if (getProjectEnvId() != other.getProjectEnvId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + START_AT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartAtId()); hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectEnvId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigServicePointer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ConfigServicePointer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ConfigServicePointer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigServicePointer) cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigServicePointer.class, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigServicePointer.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; projectId_ = 0L; startAtId_ = 0L; projectEnvId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigServicePointer_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigServicePointer getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigServicePointer build() { cloud.prefab.domain.Prefab.ConfigServicePointer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigServicePointer buildPartial() { cloud.prefab.domain.Prefab.ConfigServicePointer result = new cloud.prefab.domain.Prefab.ConfigServicePointer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigServicePointer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startAtId_ = startAtId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.projectEnvId_ = projectEnvId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConfigServicePointer) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigServicePointer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigServicePointer other) { if (other == cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance()) return this; if (other.getProjectId() != 0L) { setProjectId(other.getProjectId()); } if (other.getStartAtId() != 0L) { setStartAtId(other.getStartAtId()); } if (other.getProjectEnvId() != 0L) { setProjectEnvId(other.getProjectEnvId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { startAtId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { projectEnvId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long projectId_ ; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 1; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 project_id = 1; * @return This builder for chaining. */ public Builder clearProjectId() { bitField0_ = (bitField0_ & ~0x00000001); projectId_ = 0L; onChanged(); return this; } private long startAtId_ ; /** * int64 start_at_id = 2; * @return The startAtId. */ @java.lang.Override public long getStartAtId() { return startAtId_; } /** * int64 start_at_id = 2; * @param value The startAtId to set. * @return This builder for chaining. */ public Builder setStartAtId(long value) { startAtId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 start_at_id = 2; * @return This builder for chaining. */ public Builder clearStartAtId() { bitField0_ = (bitField0_ & ~0x00000002); startAtId_ = 0L; onChanged(); return this; } private long projectEnvId_ ; /** * int64 project_env_id = 3; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } /** * int64 project_env_id = 3; * @param value The projectEnvId to set. * @return This builder for chaining. */ public Builder setProjectEnvId(long value) { projectEnvId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 project_env_id = 3; * @return This builder for chaining. */ public Builder clearProjectEnvId() { bitField0_ = (bitField0_ & ~0x00000004); projectEnvId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ConfigServicePointer) } // @@protoc_insertion_point(class_scope:prefab.ConfigServicePointer) private static final cloud.prefab.domain.Prefab.ConfigServicePointer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigServicePointer(); } public static cloud.prefab.domain.Prefab.ConfigServicePointer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigServicePointer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigServicePointer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigValueOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigValue) com.google.protobuf.MessageOrBuilder { /** * int64 int = 1; * @return Whether the int field is set. */ boolean hasInt(); /** * int64 int = 1; * @return The int. */ long getInt(); /** * string string = 2; * @return Whether the string field is set. */ boolean hasString(); /** * string string = 2; * @return The string. */ java.lang.String getString(); /** * string string = 2; * @return The bytes for string. */ com.google.protobuf.ByteString getStringBytes(); /** * bytes bytes = 3; * @return Whether the bytes field is set. */ boolean hasBytes(); /** * bytes bytes = 3; * @return The bytes. */ com.google.protobuf.ByteString getBytes(); /** * double double = 4; * @return Whether the double field is set. */ boolean hasDouble(); /** * double double = 4; * @return The double. */ double getDouble(); /** * bool bool = 5; * @return Whether the bool field is set. */ boolean hasBool(); /** * bool bool = 5; * @return The bool. */ boolean getBool(); /** * .prefab.WeightedValues weighted_values = 6; * @return Whether the weightedValues field is set. */ boolean hasWeightedValues(); /** * .prefab.WeightedValues weighted_values = 6; * @return The weightedValues. */ cloud.prefab.domain.Prefab.WeightedValues getWeightedValues(); /** * .prefab.WeightedValues weighted_values = 6; */ cloud.prefab.domain.Prefab.WeightedValuesOrBuilder getWeightedValuesOrBuilder(); /** * .prefab.LimitDefinition limit_definition = 7; * @return Whether the limitDefinition field is set. */ boolean hasLimitDefinition(); /** * .prefab.LimitDefinition limit_definition = 7; * @return The limitDefinition. */ cloud.prefab.domain.Prefab.LimitDefinition getLimitDefinition(); /** * .prefab.LimitDefinition limit_definition = 7; */ cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getLimitDefinitionOrBuilder(); /** * .prefab.LogLevel log_level = 9; * @return Whether the logLevel field is set. */ boolean hasLogLevel(); /** * .prefab.LogLevel log_level = 9; * @return The enum numeric value on the wire for logLevel. */ int getLogLevelValue(); /** * .prefab.LogLevel log_level = 9; * @return The logLevel. */ cloud.prefab.domain.Prefab.LogLevel getLogLevel(); /** * .prefab.StringList string_list = 10; * @return Whether the stringList field is set. */ boolean hasStringList(); /** * .prefab.StringList string_list = 10; * @return The stringList. */ cloud.prefab.domain.Prefab.StringList getStringList(); /** * .prefab.StringList string_list = 10; */ cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder(); /** * .prefab.IntRange int_range = 11; * @return Whether the intRange field is set. */ boolean hasIntRange(); /** * .prefab.IntRange int_range = 11; * @return The intRange. */ cloud.prefab.domain.Prefab.IntRange getIntRange(); /** * .prefab.IntRange int_range = 11; */ cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder(); /** * .prefab.Provided provided = 12; * @return Whether the provided field is set. */ boolean hasProvided(); /** * .prefab.Provided provided = 12; * @return The provided. */ cloud.prefab.domain.Prefab.Provided getProvided(); /** * .prefab.Provided provided = 12; */ cloud.prefab.domain.Prefab.ProvidedOrBuilder getProvidedOrBuilder(); /** * .prefab.IsoDuration duration = 15; * @return Whether the duration field is set. */ boolean hasDuration(); /** * .prefab.IsoDuration duration = 15; * @return The duration. */ cloud.prefab.domain.Prefab.IsoDuration getDuration(); /** * .prefab.IsoDuration duration = 15; */ cloud.prefab.domain.Prefab.IsoDurationOrBuilder getDurationOrBuilder(); /** * .prefab.Json json = 16; * @return Whether the json field is set. */ boolean hasJson(); /** * .prefab.Json json = 16; * @return The json. */ cloud.prefab.domain.Prefab.Json getJson(); /** * .prefab.Json json = 16; */ cloud.prefab.domain.Prefab.JsonOrBuilder getJsonOrBuilder(); /** *
     * don't log or telemetry this value
     * 
* * optional bool confidential = 13; * @return Whether the confidential field is set. */ boolean hasConfidential(); /** *
     * don't log or telemetry this value
     * 
* * optional bool confidential = 13; * @return The confidential. */ boolean getConfidential(); /** *
     * key name to decrypt with
     * 
* * optional string decrypt_with = 14; * @return Whether the decryptWith field is set. */ boolean hasDecryptWith(); /** *
     * key name to decrypt with
     * 
* * optional string decrypt_with = 14; * @return The decryptWith. */ java.lang.String getDecryptWith(); /** *
     * key name to decrypt with
     * 
* * optional string decrypt_with = 14; * @return The bytes for decryptWith. */ com.google.protobuf.ByteString getDecryptWithBytes(); cloud.prefab.domain.Prefab.ConfigValue.TypeCase getTypeCase(); } /** * Protobuf type {@code prefab.ConfigValue} */ public static final class ConfigValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigValue) ConfigValueOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigValue.newBuilder() to construct. private ConfigValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigValue() { decryptWith_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigValue.class, cloud.prefab.domain.Prefab.ConfigValue.Builder.class); } private int bitField0_; private int typeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INT(1), STRING(2), BYTES(3), DOUBLE(4), BOOL(5), WEIGHTED_VALUES(6), LIMIT_DEFINITION(7), LOG_LEVEL(9), STRING_LIST(10), INT_RANGE(11), PROVIDED(12), DURATION(15), JSON(16), TYPE_NOT_SET(0); private final int value; private TypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TypeCase valueOf(int value) { return forNumber(value); } public static TypeCase forNumber(int value) { switch (value) { case 1: return INT; case 2: return STRING; case 3: return BYTES; case 4: return DOUBLE; case 5: return BOOL; case 6: return WEIGHTED_VALUES; case 7: return LIMIT_DEFINITION; case 9: return LOG_LEVEL; case 10: return STRING_LIST; case 11: return INT_RANGE; case 12: return PROVIDED; case 15: return DURATION; case 16: return JSON; case 0: return TYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public static final int INT_FIELD_NUMBER = 1; /** * int64 int = 1; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return typeCase_ == 1; } /** * int64 int = 1; * @return The int. */ @java.lang.Override public long getInt() { if (typeCase_ == 1) { return (java.lang.Long) type_; } return 0L; } public static final int STRING_FIELD_NUMBER = 2; /** * string string = 2; * @return Whether the string field is set. */ public boolean hasString() { return typeCase_ == 2; } /** * string string = 2; * @return The string. */ public java.lang.String getString() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; } return s; } } /** * string string = 2; * @return The bytes for string. */ public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BYTES_FIELD_NUMBER = 3; /** * bytes bytes = 3; * @return Whether the bytes field is set. */ @java.lang.Override public boolean hasBytes() { return typeCase_ == 3; } /** * bytes bytes = 3; * @return The bytes. */ @java.lang.Override public com.google.protobuf.ByteString getBytes() { if (typeCase_ == 3) { return (com.google.protobuf.ByteString) type_; } return com.google.protobuf.ByteString.EMPTY; } public static final int DOUBLE_FIELD_NUMBER = 4; /** * double double = 4; * @return Whether the double field is set. */ @java.lang.Override public boolean hasDouble() { return typeCase_ == 4; } /** * double double = 4; * @return The double. */ @java.lang.Override public double getDouble() { if (typeCase_ == 4) { return (java.lang.Double) type_; } return 0D; } public static final int BOOL_FIELD_NUMBER = 5; /** * bool bool = 5; * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return typeCase_ == 5; } /** * bool bool = 5; * @return The bool. */ @java.lang.Override public boolean getBool() { if (typeCase_ == 5) { return (java.lang.Boolean) type_; } return false; } public static final int WEIGHTED_VALUES_FIELD_NUMBER = 6; /** * .prefab.WeightedValues weighted_values = 6; * @return Whether the weightedValues field is set. */ @java.lang.Override public boolean hasWeightedValues() { return typeCase_ == 6; } /** * .prefab.WeightedValues weighted_values = 6; * @return The weightedValues. */ @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues getWeightedValues() { if (typeCase_ == 6) { return (cloud.prefab.domain.Prefab.WeightedValues) type_; } return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } /** * .prefab.WeightedValues weighted_values = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValuesOrBuilder getWeightedValuesOrBuilder() { if (typeCase_ == 6) { return (cloud.prefab.domain.Prefab.WeightedValues) type_; } return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } public static final int LIMIT_DEFINITION_FIELD_NUMBER = 7; /** * .prefab.LimitDefinition limit_definition = 7; * @return Whether the limitDefinition field is set. */ @java.lang.Override public boolean hasLimitDefinition() { return typeCase_ == 7; } /** * .prefab.LimitDefinition limit_definition = 7; * @return The limitDefinition. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition getLimitDefinition() { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.LimitDefinition) type_; } return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } /** * .prefab.LimitDefinition limit_definition = 7; */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getLimitDefinitionOrBuilder() { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.LimitDefinition) type_; } return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } public static final int LOG_LEVEL_FIELD_NUMBER = 9; /** * .prefab.LogLevel log_level = 9; * @return Whether the logLevel field is set. */ public boolean hasLogLevel() { return typeCase_ == 9; } /** * .prefab.LogLevel log_level = 9; * @return The enum numeric value on the wire for logLevel. */ public int getLogLevelValue() { if (typeCase_ == 9) { return (java.lang.Integer) type_; } return 0; } /** * .prefab.LogLevel log_level = 9; * @return The logLevel. */ public cloud.prefab.domain.Prefab.LogLevel getLogLevel() { if (typeCase_ == 9) { cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.forNumber( (java.lang.Integer) type_); return result == null ? cloud.prefab.domain.Prefab.LogLevel.UNRECOGNIZED : result; } return cloud.prefab.domain.Prefab.LogLevel.NOT_SET_LOG_LEVEL; } public static final int STRING_LIST_FIELD_NUMBER = 10; /** * .prefab.StringList string_list = 10; * @return Whether the stringList field is set. */ @java.lang.Override public boolean hasStringList() { return typeCase_ == 10; } /** * .prefab.StringList string_list = 10; * @return The stringList. */ @java.lang.Override public cloud.prefab.domain.Prefab.StringList getStringList() { if (typeCase_ == 10) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } /** * .prefab.StringList string_list = 10; */ @java.lang.Override public cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder() { if (typeCase_ == 10) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } public static final int INT_RANGE_FIELD_NUMBER = 11; /** * .prefab.IntRange int_range = 11; * @return Whether the intRange field is set. */ @java.lang.Override public boolean hasIntRange() { return typeCase_ == 11; } /** * .prefab.IntRange int_range = 11; * @return The intRange. */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRange getIntRange() { if (typeCase_ == 11) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } /** * .prefab.IntRange int_range = 11; */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder() { if (typeCase_ == 11) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } public static final int PROVIDED_FIELD_NUMBER = 12; /** * .prefab.Provided provided = 12; * @return Whether the provided field is set. */ @java.lang.Override public boolean hasProvided() { return typeCase_ == 12; } /** * .prefab.Provided provided = 12; * @return The provided. */ @java.lang.Override public cloud.prefab.domain.Prefab.Provided getProvided() { if (typeCase_ == 12) { return (cloud.prefab.domain.Prefab.Provided) type_; } return cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } /** * .prefab.Provided provided = 12; */ @java.lang.Override public cloud.prefab.domain.Prefab.ProvidedOrBuilder getProvidedOrBuilder() { if (typeCase_ == 12) { return (cloud.prefab.domain.Prefab.Provided) type_; } return cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } public static final int DURATION_FIELD_NUMBER = 15; /** * .prefab.IsoDuration duration = 15; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return typeCase_ == 15; } /** * .prefab.IsoDuration duration = 15; * @return The duration. */ @java.lang.Override public cloud.prefab.domain.Prefab.IsoDuration getDuration() { if (typeCase_ == 15) { return (cloud.prefab.domain.Prefab.IsoDuration) type_; } return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } /** * .prefab.IsoDuration duration = 15; */ @java.lang.Override public cloud.prefab.domain.Prefab.IsoDurationOrBuilder getDurationOrBuilder() { if (typeCase_ == 15) { return (cloud.prefab.domain.Prefab.IsoDuration) type_; } return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } public static final int JSON_FIELD_NUMBER = 16; /** * .prefab.Json json = 16; * @return Whether the json field is set. */ @java.lang.Override public boolean hasJson() { return typeCase_ == 16; } /** * .prefab.Json json = 16; * @return The json. */ @java.lang.Override public cloud.prefab.domain.Prefab.Json getJson() { if (typeCase_ == 16) { return (cloud.prefab.domain.Prefab.Json) type_; } return cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } /** * .prefab.Json json = 16; */ @java.lang.Override public cloud.prefab.domain.Prefab.JsonOrBuilder getJsonOrBuilder() { if (typeCase_ == 16) { return (cloud.prefab.domain.Prefab.Json) type_; } return cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } public static final int CONFIDENTIAL_FIELD_NUMBER = 13; private boolean confidential_ = false; /** *
     * don't log or telemetry this value
     * 
* * optional bool confidential = 13; * @return Whether the confidential field is set. */ @java.lang.Override public boolean hasConfidential() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * don't log or telemetry this value
     * 
* * optional bool confidential = 13; * @return The confidential. */ @java.lang.Override public boolean getConfidential() { return confidential_; } public static final int DECRYPT_WITH_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object decryptWith_ = ""; /** *
     * key name to decrypt with
     * 
* * optional string decrypt_with = 14; * @return Whether the decryptWith field is set. */ @java.lang.Override public boolean hasDecryptWith() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * key name to decrypt with
     * 
* * optional string decrypt_with = 14; * @return The decryptWith. */ @java.lang.Override public java.lang.String getDecryptWith() { java.lang.Object ref = decryptWith_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); decryptWith_ = s; return s; } } /** *
     * key name to decrypt with
     * 
* * optional string decrypt_with = 14; * @return The bytes for decryptWith. */ @java.lang.Override public com.google.protobuf.ByteString getDecryptWithBytes() { java.lang.Object ref = decryptWith_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); decryptWith_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) type_)); } if (typeCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } if (typeCase_ == 3) { output.writeBytes( 3, (com.google.protobuf.ByteString) type_); } if (typeCase_ == 4) { output.writeDouble( 4, (double)((java.lang.Double) type_)); } if (typeCase_ == 5) { output.writeBool( 5, (boolean)((java.lang.Boolean) type_)); } if (typeCase_ == 6) { output.writeMessage(6, (cloud.prefab.domain.Prefab.WeightedValues) type_); } if (typeCase_ == 7) { output.writeMessage(7, (cloud.prefab.domain.Prefab.LimitDefinition) type_); } if (typeCase_ == 9) { output.writeEnum(9, ((java.lang.Integer) type_)); } if (typeCase_ == 10) { output.writeMessage(10, (cloud.prefab.domain.Prefab.StringList) type_); } if (typeCase_ == 11) { output.writeMessage(11, (cloud.prefab.domain.Prefab.IntRange) type_); } if (typeCase_ == 12) { output.writeMessage(12, (cloud.prefab.domain.Prefab.Provided) type_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(13, confidential_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, decryptWith_); } if (typeCase_ == 15) { output.writeMessage(15, (cloud.prefab.domain.Prefab.IsoDuration) type_); } if (typeCase_ == 16) { output.writeMessage(16, (cloud.prefab.domain.Prefab.Json) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) type_)); } if (typeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (typeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 3, (com.google.protobuf.ByteString) type_); } if (typeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 4, (double)((java.lang.Double) type_)); } if (typeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 5, (boolean)((java.lang.Boolean) type_)); } if (typeCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (cloud.prefab.domain.Prefab.WeightedValues) type_); } if (typeCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (cloud.prefab.domain.Prefab.LimitDefinition) type_); } if (typeCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, ((java.lang.Integer) type_)); } if (typeCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (cloud.prefab.domain.Prefab.StringList) type_); } if (typeCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (cloud.prefab.domain.Prefab.IntRange) type_); } if (typeCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (cloud.prefab.domain.Prefab.Provided) type_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, confidential_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, decryptWith_); } if (typeCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (cloud.prefab.domain.Prefab.IsoDuration) type_); } if (typeCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (cloud.prefab.domain.Prefab.Json) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigValue)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigValue other = (cloud.prefab.domain.Prefab.ConfigValue) obj; if (hasConfidential() != other.hasConfidential()) return false; if (hasConfidential()) { if (getConfidential() != other.getConfidential()) return false; } if (hasDecryptWith() != other.hasDecryptWith()) return false; if (hasDecryptWith()) { if (!getDecryptWith() .equals(other.getDecryptWith())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (getInt() != other.getInt()) return false; break; case 2: if (!getString() .equals(other.getString())) return false; break; case 3: if (!getBytes() .equals(other.getBytes())) return false; break; case 4: if (java.lang.Double.doubleToLongBits(getDouble()) != java.lang.Double.doubleToLongBits( other.getDouble())) return false; break; case 5: if (getBool() != other.getBool()) return false; break; case 6: if (!getWeightedValues() .equals(other.getWeightedValues())) return false; break; case 7: if (!getLimitDefinition() .equals(other.getLimitDefinition())) return false; break; case 9: if (getLogLevelValue() != other.getLogLevelValue()) return false; break; case 10: if (!getStringList() .equals(other.getStringList())) return false; break; case 11: if (!getIntRange() .equals(other.getIntRange())) return false; break; case 12: if (!getProvided() .equals(other.getProvided())) return false; break; case 15: if (!getDuration() .equals(other.getDuration())) return false; break; case 16: if (!getJson() .equals(other.getJson())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConfidential()) { hash = (37 * hash) + CONFIDENTIAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getConfidential()); } if (hasDecryptWith()) { hash = (37 * hash) + DECRYPT_WITH_FIELD_NUMBER; hash = (53 * hash) + getDecryptWith().hashCode(); } switch (typeCase_) { case 1: hash = (37 * hash) + INT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt()); break; case 2: hash = (37 * hash) + STRING_FIELD_NUMBER; hash = (53 * hash) + getString().hashCode(); break; case 3: hash = (37 * hash) + BYTES_FIELD_NUMBER; hash = (53 * hash) + getBytes().hashCode(); break; case 4: hash = (37 * hash) + DOUBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDouble())); break; case 5: hash = (37 * hash) + BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBool()); break; case 6: hash = (37 * hash) + WEIGHTED_VALUES_FIELD_NUMBER; hash = (53 * hash) + getWeightedValues().hashCode(); break; case 7: hash = (37 * hash) + LIMIT_DEFINITION_FIELD_NUMBER; hash = (53 * hash) + getLimitDefinition().hashCode(); break; case 9: hash = (37 * hash) + LOG_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getLogLevelValue(); break; case 10: hash = (37 * hash) + STRING_LIST_FIELD_NUMBER; hash = (53 * hash) + getStringList().hashCode(); break; case 11: hash = (37 * hash) + INT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getIntRange().hashCode(); break; case 12: hash = (37 * hash) + PROVIDED_FIELD_NUMBER; hash = (53 * hash) + getProvided().hashCode(); break; case 15: hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); break; case 16: hash = (37 * hash) + JSON_FIELD_NUMBER; hash = (53 * hash) + getJson().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ConfigValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ConfigValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigValue) cloud.prefab.domain.Prefab.ConfigValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigValue.class, cloud.prefab.domain.Prefab.ConfigValue.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (weightedValuesBuilder_ != null) { weightedValuesBuilder_.clear(); } if (limitDefinitionBuilder_ != null) { limitDefinitionBuilder_.clear(); } if (stringListBuilder_ != null) { stringListBuilder_.clear(); } if (intRangeBuilder_ != null) { intRangeBuilder_.clear(); } if (providedBuilder_ != null) { providedBuilder_.clear(); } if (durationBuilder_ != null) { durationBuilder_.clear(); } if (jsonBuilder_ != null) { jsonBuilder_.clear(); } confidential_ = false; decryptWith_ = ""; typeCase_ = 0; type_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigValue_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue build() { cloud.prefab.domain.Prefab.ConfigValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue buildPartial() { cloud.prefab.domain.Prefab.ConfigValue result = new cloud.prefab.domain.Prefab.ConfigValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00002000) != 0)) { result.confidential_ = confidential_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00004000) != 0)) { result.decryptWith_ = decryptWith_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(cloud.prefab.domain.Prefab.ConfigValue result) { result.typeCase_ = typeCase_; result.type_ = this.type_; if (typeCase_ == 6 && weightedValuesBuilder_ != null) { result.type_ = weightedValuesBuilder_.build(); } if (typeCase_ == 7 && limitDefinitionBuilder_ != null) { result.type_ = limitDefinitionBuilder_.build(); } if (typeCase_ == 10 && stringListBuilder_ != null) { result.type_ = stringListBuilder_.build(); } if (typeCase_ == 11 && intRangeBuilder_ != null) { result.type_ = intRangeBuilder_.build(); } if (typeCase_ == 12 && providedBuilder_ != null) { result.type_ = providedBuilder_.build(); } if (typeCase_ == 15 && durationBuilder_ != null) { result.type_ = durationBuilder_.build(); } if (typeCase_ == 16 && jsonBuilder_ != null) { result.type_ = jsonBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConfigValue) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigValue other) { if (other == cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) return this; if (other.hasConfidential()) { setConfidential(other.getConfidential()); } if (other.hasDecryptWith()) { decryptWith_ = other.decryptWith_; bitField0_ |= 0x00004000; onChanged(); } switch (other.getTypeCase()) { case INT: { setInt(other.getInt()); break; } case STRING: { typeCase_ = 2; type_ = other.type_; onChanged(); break; } case BYTES: { setBytes(other.getBytes()); break; } case DOUBLE: { setDouble(other.getDouble()); break; } case BOOL: { setBool(other.getBool()); break; } case WEIGHTED_VALUES: { mergeWeightedValues(other.getWeightedValues()); break; } case LIMIT_DEFINITION: { mergeLimitDefinition(other.getLimitDefinition()); break; } case LOG_LEVEL: { setLogLevelValue(other.getLogLevelValue()); break; } case STRING_LIST: { mergeStringList(other.getStringList()); break; } case INT_RANGE: { mergeIntRange(other.getIntRange()); break; } case PROVIDED: { mergeProvided(other.getProvided()); break; } case DURATION: { mergeDuration(other.getDuration()); break; } case JSON: { mergeJson(other.getJson()); break; } case TYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readInt64(); typeCase_ = 1; break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); typeCase_ = 2; type_ = s; break; } // case 18 case 26: { type_ = input.readBytes(); typeCase_ = 3; break; } // case 26 case 33: { type_ = input.readDouble(); typeCase_ = 4; break; } // case 33 case 40: { type_ = input.readBool(); typeCase_ = 5; break; } // case 40 case 50: { input.readMessage( getWeightedValuesFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 6; break; } // case 50 case 58: { input.readMessage( getLimitDefinitionFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 7; break; } // case 58 case 72: { int rawValue = input.readEnum(); typeCase_ = 9; type_ = rawValue; break; } // case 72 case 82: { input.readMessage( getStringListFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 10; break; } // case 82 case 90: { input.readMessage( getIntRangeFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 11; break; } // case 90 case 98: { input.readMessage( getProvidedFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 12; break; } // case 98 case 104: { confidential_ = input.readBool(); bitField0_ |= 0x00002000; break; } // case 104 case 114: { decryptWith_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 114 case 122: { input.readMessage( getDurationFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 15; break; } // case 122 case 130: { input.readMessage( getJsonFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 16; break; } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private int bitField0_; /** * int64 int = 1; * @return Whether the int field is set. */ public boolean hasInt() { return typeCase_ == 1; } /** * int64 int = 1; * @return The int. */ public long getInt() { if (typeCase_ == 1) { return (java.lang.Long) type_; } return 0L; } /** * int64 int = 1; * @param value The int to set. * @return This builder for chaining. */ public Builder setInt(long value) { typeCase_ = 1; type_ = value; onChanged(); return this; } /** * int64 int = 1; * @return This builder for chaining. */ public Builder clearInt() { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * string string = 2; * @return Whether the string field is set. */ @java.lang.Override public boolean hasString() { return typeCase_ == 2; } /** * string string = 2; * @return The string. */ @java.lang.Override public java.lang.String getString() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string string = 2; * @return The bytes for string. */ @java.lang.Override public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string string = 2; * @param value The string to set. * @return This builder for chaining. */ public Builder setString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 2; type_ = value; onChanged(); return this; } /** * string string = 2; * @return This builder for chaining. */ public Builder clearString() { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * string string = 2; * @param value The bytes for string to set. * @return This builder for chaining. */ public Builder setStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeCase_ = 2; type_ = value; onChanged(); return this; } /** * bytes bytes = 3; * @return Whether the bytes field is set. */ public boolean hasBytes() { return typeCase_ == 3; } /** * bytes bytes = 3; * @return The bytes. */ public com.google.protobuf.ByteString getBytes() { if (typeCase_ == 3) { return (com.google.protobuf.ByteString) type_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes bytes = 3; * @param value The bytes to set. * @return This builder for chaining. */ public Builder setBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 3; type_ = value; onChanged(); return this; } /** * bytes bytes = 3; * @return This builder for chaining. */ public Builder clearBytes() { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * double double = 4; * @return Whether the double field is set. */ public boolean hasDouble() { return typeCase_ == 4; } /** * double double = 4; * @return The double. */ public double getDouble() { if (typeCase_ == 4) { return (java.lang.Double) type_; } return 0D; } /** * double double = 4; * @param value The double to set. * @return This builder for chaining. */ public Builder setDouble(double value) { typeCase_ = 4; type_ = value; onChanged(); return this; } /** * double double = 4; * @return This builder for chaining. */ public Builder clearDouble() { if (typeCase_ == 4) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * bool bool = 5; * @return Whether the bool field is set. */ public boolean hasBool() { return typeCase_ == 5; } /** * bool bool = 5; * @return The bool. */ public boolean getBool() { if (typeCase_ == 5) { return (java.lang.Boolean) type_; } return false; } /** * bool bool = 5; * @param value The bool to set. * @return This builder for chaining. */ public Builder setBool(boolean value) { typeCase_ = 5; type_ = value; onChanged(); return this; } /** * bool bool = 5; * @return This builder for chaining. */ public Builder clearBool() { if (typeCase_ == 5) { typeCase_ = 0; type_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.WeightedValues, cloud.prefab.domain.Prefab.WeightedValues.Builder, cloud.prefab.domain.Prefab.WeightedValuesOrBuilder> weightedValuesBuilder_; /** * .prefab.WeightedValues weighted_values = 6; * @return Whether the weightedValues field is set. */ @java.lang.Override public boolean hasWeightedValues() { return typeCase_ == 6; } /** * .prefab.WeightedValues weighted_values = 6; * @return The weightedValues. */ @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues getWeightedValues() { if (weightedValuesBuilder_ == null) { if (typeCase_ == 6) { return (cloud.prefab.domain.Prefab.WeightedValues) type_; } return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } else { if (typeCase_ == 6) { return weightedValuesBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } } /** * .prefab.WeightedValues weighted_values = 6; */ public Builder setWeightedValues(cloud.prefab.domain.Prefab.WeightedValues value) { if (weightedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { weightedValuesBuilder_.setMessage(value); } typeCase_ = 6; return this; } /** * .prefab.WeightedValues weighted_values = 6; */ public Builder setWeightedValues( cloud.prefab.domain.Prefab.WeightedValues.Builder builderForValue) { if (weightedValuesBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { weightedValuesBuilder_.setMessage(builderForValue.build()); } typeCase_ = 6; return this; } /** * .prefab.WeightedValues weighted_values = 6; */ public Builder mergeWeightedValues(cloud.prefab.domain.Prefab.WeightedValues value) { if (weightedValuesBuilder_ == null) { if (typeCase_ == 6 && type_ != cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.WeightedValues.newBuilder((cloud.prefab.domain.Prefab.WeightedValues) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 6) { weightedValuesBuilder_.mergeFrom(value); } else { weightedValuesBuilder_.setMessage(value); } } typeCase_ = 6; return this; } /** * .prefab.WeightedValues weighted_values = 6; */ public Builder clearWeightedValues() { if (weightedValuesBuilder_ == null) { if (typeCase_ == 6) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 6) { typeCase_ = 0; type_ = null; } weightedValuesBuilder_.clear(); } return this; } /** * .prefab.WeightedValues weighted_values = 6; */ public cloud.prefab.domain.Prefab.WeightedValues.Builder getWeightedValuesBuilder() { return getWeightedValuesFieldBuilder().getBuilder(); } /** * .prefab.WeightedValues weighted_values = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValuesOrBuilder getWeightedValuesOrBuilder() { if ((typeCase_ == 6) && (weightedValuesBuilder_ != null)) { return weightedValuesBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 6) { return (cloud.prefab.domain.Prefab.WeightedValues) type_; } return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } } /** * .prefab.WeightedValues weighted_values = 6; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.WeightedValues, cloud.prefab.domain.Prefab.WeightedValues.Builder, cloud.prefab.domain.Prefab.WeightedValuesOrBuilder> getWeightedValuesFieldBuilder() { if (weightedValuesBuilder_ == null) { if (!(typeCase_ == 6)) { type_ = cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } weightedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.WeightedValues, cloud.prefab.domain.Prefab.WeightedValues.Builder, cloud.prefab.domain.Prefab.WeightedValuesOrBuilder>( (cloud.prefab.domain.Prefab.WeightedValues) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 6; onChanged(); return weightedValuesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder> limitDefinitionBuilder_; /** * .prefab.LimitDefinition limit_definition = 7; * @return Whether the limitDefinition field is set. */ @java.lang.Override public boolean hasLimitDefinition() { return typeCase_ == 7; } /** * .prefab.LimitDefinition limit_definition = 7; * @return The limitDefinition. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition getLimitDefinition() { if (limitDefinitionBuilder_ == null) { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.LimitDefinition) type_; } return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } else { if (typeCase_ == 7) { return limitDefinitionBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } } /** * .prefab.LimitDefinition limit_definition = 7; */ public Builder setLimitDefinition(cloud.prefab.domain.Prefab.LimitDefinition value) { if (limitDefinitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { limitDefinitionBuilder_.setMessage(value); } typeCase_ = 7; return this; } /** * .prefab.LimitDefinition limit_definition = 7; */ public Builder setLimitDefinition( cloud.prefab.domain.Prefab.LimitDefinition.Builder builderForValue) { if (limitDefinitionBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { limitDefinitionBuilder_.setMessage(builderForValue.build()); } typeCase_ = 7; return this; } /** * .prefab.LimitDefinition limit_definition = 7; */ public Builder mergeLimitDefinition(cloud.prefab.domain.Prefab.LimitDefinition value) { if (limitDefinitionBuilder_ == null) { if (typeCase_ == 7 && type_ != cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.LimitDefinition.newBuilder((cloud.prefab.domain.Prefab.LimitDefinition) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 7) { limitDefinitionBuilder_.mergeFrom(value); } else { limitDefinitionBuilder_.setMessage(value); } } typeCase_ = 7; return this; } /** * .prefab.LimitDefinition limit_definition = 7; */ public Builder clearLimitDefinition() { if (limitDefinitionBuilder_ == null) { if (typeCase_ == 7) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 7) { typeCase_ = 0; type_ = null; } limitDefinitionBuilder_.clear(); } return this; } /** * .prefab.LimitDefinition limit_definition = 7; */ public cloud.prefab.domain.Prefab.LimitDefinition.Builder getLimitDefinitionBuilder() { return getLimitDefinitionFieldBuilder().getBuilder(); } /** * .prefab.LimitDefinition limit_definition = 7; */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder getLimitDefinitionOrBuilder() { if ((typeCase_ == 7) && (limitDefinitionBuilder_ != null)) { return limitDefinitionBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.LimitDefinition) type_; } return cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } } /** * .prefab.LimitDefinition limit_definition = 7; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder> getLimitDefinitionFieldBuilder() { if (limitDefinitionBuilder_ == null) { if (!(typeCase_ == 7)) { type_ = cloud.prefab.domain.Prefab.LimitDefinition.getDefaultInstance(); } limitDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.LimitDefinition, cloud.prefab.domain.Prefab.LimitDefinition.Builder, cloud.prefab.domain.Prefab.LimitDefinitionOrBuilder>( (cloud.prefab.domain.Prefab.LimitDefinition) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 7; onChanged(); return limitDefinitionBuilder_; } /** * .prefab.LogLevel log_level = 9; * @return Whether the logLevel field is set. */ @java.lang.Override public boolean hasLogLevel() { return typeCase_ == 9; } /** * .prefab.LogLevel log_level = 9; * @return The enum numeric value on the wire for logLevel. */ @java.lang.Override public int getLogLevelValue() { if (typeCase_ == 9) { return ((java.lang.Integer) type_).intValue(); } return 0; } /** * .prefab.LogLevel log_level = 9; * @param value The enum numeric value on the wire for logLevel to set. * @return This builder for chaining. */ public Builder setLogLevelValue(int value) { typeCase_ = 9; type_ = value; onChanged(); return this; } /** * .prefab.LogLevel log_level = 9; * @return The logLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LogLevel getLogLevel() { if (typeCase_ == 9) { cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.forNumber( (java.lang.Integer) type_); return result == null ? cloud.prefab.domain.Prefab.LogLevel.UNRECOGNIZED : result; } return cloud.prefab.domain.Prefab.LogLevel.NOT_SET_LOG_LEVEL; } /** * .prefab.LogLevel log_level = 9; * @param value The logLevel to set. * @return This builder for chaining. */ public Builder setLogLevel(cloud.prefab.domain.Prefab.LogLevel value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 9; type_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LogLevel log_level = 9; * @return This builder for chaining. */ public Builder clearLogLevel() { if (typeCase_ == 9) { typeCase_ = 0; type_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.StringList, cloud.prefab.domain.Prefab.StringList.Builder, cloud.prefab.domain.Prefab.StringListOrBuilder> stringListBuilder_; /** * .prefab.StringList string_list = 10; * @return Whether the stringList field is set. */ @java.lang.Override public boolean hasStringList() { return typeCase_ == 10; } /** * .prefab.StringList string_list = 10; * @return The stringList. */ @java.lang.Override public cloud.prefab.domain.Prefab.StringList getStringList() { if (stringListBuilder_ == null) { if (typeCase_ == 10) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } else { if (typeCase_ == 10) { return stringListBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } } /** * .prefab.StringList string_list = 10; */ public Builder setStringList(cloud.prefab.domain.Prefab.StringList value) { if (stringListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { stringListBuilder_.setMessage(value); } typeCase_ = 10; return this; } /** * .prefab.StringList string_list = 10; */ public Builder setStringList( cloud.prefab.domain.Prefab.StringList.Builder builderForValue) { if (stringListBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { stringListBuilder_.setMessage(builderForValue.build()); } typeCase_ = 10; return this; } /** * .prefab.StringList string_list = 10; */ public Builder mergeStringList(cloud.prefab.domain.Prefab.StringList value) { if (stringListBuilder_ == null) { if (typeCase_ == 10 && type_ != cloud.prefab.domain.Prefab.StringList.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.StringList.newBuilder((cloud.prefab.domain.Prefab.StringList) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 10) { stringListBuilder_.mergeFrom(value); } else { stringListBuilder_.setMessage(value); } } typeCase_ = 10; return this; } /** * .prefab.StringList string_list = 10; */ public Builder clearStringList() { if (stringListBuilder_ == null) { if (typeCase_ == 10) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 10) { typeCase_ = 0; type_ = null; } stringListBuilder_.clear(); } return this; } /** * .prefab.StringList string_list = 10; */ public cloud.prefab.domain.Prefab.StringList.Builder getStringListBuilder() { return getStringListFieldBuilder().getBuilder(); } /** * .prefab.StringList string_list = 10; */ @java.lang.Override public cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder() { if ((typeCase_ == 10) && (stringListBuilder_ != null)) { return stringListBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 10) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } } /** * .prefab.StringList string_list = 10; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.StringList, cloud.prefab.domain.Prefab.StringList.Builder, cloud.prefab.domain.Prefab.StringListOrBuilder> getStringListFieldBuilder() { if (stringListBuilder_ == null) { if (!(typeCase_ == 10)) { type_ = cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } stringListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.StringList, cloud.prefab.domain.Prefab.StringList.Builder, cloud.prefab.domain.Prefab.StringListOrBuilder>( (cloud.prefab.domain.Prefab.StringList) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 10; onChanged(); return stringListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder> intRangeBuilder_; /** * .prefab.IntRange int_range = 11; * @return Whether the intRange field is set. */ @java.lang.Override public boolean hasIntRange() { return typeCase_ == 11; } /** * .prefab.IntRange int_range = 11; * @return The intRange. */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRange getIntRange() { if (intRangeBuilder_ == null) { if (typeCase_ == 11) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } else { if (typeCase_ == 11) { return intRangeBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } } /** * .prefab.IntRange int_range = 11; */ public Builder setIntRange(cloud.prefab.domain.Prefab.IntRange value) { if (intRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { intRangeBuilder_.setMessage(value); } typeCase_ = 11; return this; } /** * .prefab.IntRange int_range = 11; */ public Builder setIntRange( cloud.prefab.domain.Prefab.IntRange.Builder builderForValue) { if (intRangeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { intRangeBuilder_.setMessage(builderForValue.build()); } typeCase_ = 11; return this; } /** * .prefab.IntRange int_range = 11; */ public Builder mergeIntRange(cloud.prefab.domain.Prefab.IntRange value) { if (intRangeBuilder_ == null) { if (typeCase_ == 11 && type_ != cloud.prefab.domain.Prefab.IntRange.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.IntRange.newBuilder((cloud.prefab.domain.Prefab.IntRange) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 11) { intRangeBuilder_.mergeFrom(value); } else { intRangeBuilder_.setMessage(value); } } typeCase_ = 11; return this; } /** * .prefab.IntRange int_range = 11; */ public Builder clearIntRange() { if (intRangeBuilder_ == null) { if (typeCase_ == 11) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 11) { typeCase_ = 0; type_ = null; } intRangeBuilder_.clear(); } return this; } /** * .prefab.IntRange int_range = 11; */ public cloud.prefab.domain.Prefab.IntRange.Builder getIntRangeBuilder() { return getIntRangeFieldBuilder().getBuilder(); } /** * .prefab.IntRange int_range = 11; */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder() { if ((typeCase_ == 11) && (intRangeBuilder_ != null)) { return intRangeBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 11) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } } /** * .prefab.IntRange int_range = 11; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder> getIntRangeFieldBuilder() { if (intRangeBuilder_ == null) { if (!(typeCase_ == 11)) { type_ = cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } intRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder>( (cloud.prefab.domain.Prefab.IntRange) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 11; onChanged(); return intRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.Provided, cloud.prefab.domain.Prefab.Provided.Builder, cloud.prefab.domain.Prefab.ProvidedOrBuilder> providedBuilder_; /** * .prefab.Provided provided = 12; * @return Whether the provided field is set. */ @java.lang.Override public boolean hasProvided() { return typeCase_ == 12; } /** * .prefab.Provided provided = 12; * @return The provided. */ @java.lang.Override public cloud.prefab.domain.Prefab.Provided getProvided() { if (providedBuilder_ == null) { if (typeCase_ == 12) { return (cloud.prefab.domain.Prefab.Provided) type_; } return cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } else { if (typeCase_ == 12) { return providedBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } } /** * .prefab.Provided provided = 12; */ public Builder setProvided(cloud.prefab.domain.Prefab.Provided value) { if (providedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { providedBuilder_.setMessage(value); } typeCase_ = 12; return this; } /** * .prefab.Provided provided = 12; */ public Builder setProvided( cloud.prefab.domain.Prefab.Provided.Builder builderForValue) { if (providedBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { providedBuilder_.setMessage(builderForValue.build()); } typeCase_ = 12; return this; } /** * .prefab.Provided provided = 12; */ public Builder mergeProvided(cloud.prefab.domain.Prefab.Provided value) { if (providedBuilder_ == null) { if (typeCase_ == 12 && type_ != cloud.prefab.domain.Prefab.Provided.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.Provided.newBuilder((cloud.prefab.domain.Prefab.Provided) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 12) { providedBuilder_.mergeFrom(value); } else { providedBuilder_.setMessage(value); } } typeCase_ = 12; return this; } /** * .prefab.Provided provided = 12; */ public Builder clearProvided() { if (providedBuilder_ == null) { if (typeCase_ == 12) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 12) { typeCase_ = 0; type_ = null; } providedBuilder_.clear(); } return this; } /** * .prefab.Provided provided = 12; */ public cloud.prefab.domain.Prefab.Provided.Builder getProvidedBuilder() { return getProvidedFieldBuilder().getBuilder(); } /** * .prefab.Provided provided = 12; */ @java.lang.Override public cloud.prefab.domain.Prefab.ProvidedOrBuilder getProvidedOrBuilder() { if ((typeCase_ == 12) && (providedBuilder_ != null)) { return providedBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 12) { return (cloud.prefab.domain.Prefab.Provided) type_; } return cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } } /** * .prefab.Provided provided = 12; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.Provided, cloud.prefab.domain.Prefab.Provided.Builder, cloud.prefab.domain.Prefab.ProvidedOrBuilder> getProvidedFieldBuilder() { if (providedBuilder_ == null) { if (!(typeCase_ == 12)) { type_ = cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } providedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.Provided, cloud.prefab.domain.Prefab.Provided.Builder, cloud.prefab.domain.Prefab.ProvidedOrBuilder>( (cloud.prefab.domain.Prefab.Provided) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 12; onChanged(); return providedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IsoDuration, cloud.prefab.domain.Prefab.IsoDuration.Builder, cloud.prefab.domain.Prefab.IsoDurationOrBuilder> durationBuilder_; /** * .prefab.IsoDuration duration = 15; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return typeCase_ == 15; } /** * .prefab.IsoDuration duration = 15; * @return The duration. */ @java.lang.Override public cloud.prefab.domain.Prefab.IsoDuration getDuration() { if (durationBuilder_ == null) { if (typeCase_ == 15) { return (cloud.prefab.domain.Prefab.IsoDuration) type_; } return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } else { if (typeCase_ == 15) { return durationBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } } /** * .prefab.IsoDuration duration = 15; */ public Builder setDuration(cloud.prefab.domain.Prefab.IsoDuration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { durationBuilder_.setMessage(value); } typeCase_ = 15; return this; } /** * .prefab.IsoDuration duration = 15; */ public Builder setDuration( cloud.prefab.domain.Prefab.IsoDuration.Builder builderForValue) { if (durationBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { durationBuilder_.setMessage(builderForValue.build()); } typeCase_ = 15; return this; } /** * .prefab.IsoDuration duration = 15; */ public Builder mergeDuration(cloud.prefab.domain.Prefab.IsoDuration value) { if (durationBuilder_ == null) { if (typeCase_ == 15 && type_ != cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.IsoDuration.newBuilder((cloud.prefab.domain.Prefab.IsoDuration) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 15) { durationBuilder_.mergeFrom(value); } else { durationBuilder_.setMessage(value); } } typeCase_ = 15; return this; } /** * .prefab.IsoDuration duration = 15; */ public Builder clearDuration() { if (durationBuilder_ == null) { if (typeCase_ == 15) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 15) { typeCase_ = 0; type_ = null; } durationBuilder_.clear(); } return this; } /** * .prefab.IsoDuration duration = 15; */ public cloud.prefab.domain.Prefab.IsoDuration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** * .prefab.IsoDuration duration = 15; */ @java.lang.Override public cloud.prefab.domain.Prefab.IsoDurationOrBuilder getDurationOrBuilder() { if ((typeCase_ == 15) && (durationBuilder_ != null)) { return durationBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 15) { return (cloud.prefab.domain.Prefab.IsoDuration) type_; } return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } } /** * .prefab.IsoDuration duration = 15; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IsoDuration, cloud.prefab.domain.Prefab.IsoDuration.Builder, cloud.prefab.domain.Prefab.IsoDurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { if (!(typeCase_ == 15)) { type_ = cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IsoDuration, cloud.prefab.domain.Prefab.IsoDuration.Builder, cloud.prefab.domain.Prefab.IsoDurationOrBuilder>( (cloud.prefab.domain.Prefab.IsoDuration) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 15; onChanged(); return durationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.Json, cloud.prefab.domain.Prefab.Json.Builder, cloud.prefab.domain.Prefab.JsonOrBuilder> jsonBuilder_; /** * .prefab.Json json = 16; * @return Whether the json field is set. */ @java.lang.Override public boolean hasJson() { return typeCase_ == 16; } /** * .prefab.Json json = 16; * @return The json. */ @java.lang.Override public cloud.prefab.domain.Prefab.Json getJson() { if (jsonBuilder_ == null) { if (typeCase_ == 16) { return (cloud.prefab.domain.Prefab.Json) type_; } return cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } else { if (typeCase_ == 16) { return jsonBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } } /** * .prefab.Json json = 16; */ public Builder setJson(cloud.prefab.domain.Prefab.Json value) { if (jsonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { jsonBuilder_.setMessage(value); } typeCase_ = 16; return this; } /** * .prefab.Json json = 16; */ public Builder setJson( cloud.prefab.domain.Prefab.Json.Builder builderForValue) { if (jsonBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { jsonBuilder_.setMessage(builderForValue.build()); } typeCase_ = 16; return this; } /** * .prefab.Json json = 16; */ public Builder mergeJson(cloud.prefab.domain.Prefab.Json value) { if (jsonBuilder_ == null) { if (typeCase_ == 16 && type_ != cloud.prefab.domain.Prefab.Json.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.Json.newBuilder((cloud.prefab.domain.Prefab.Json) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 16) { jsonBuilder_.mergeFrom(value); } else { jsonBuilder_.setMessage(value); } } typeCase_ = 16; return this; } /** * .prefab.Json json = 16; */ public Builder clearJson() { if (jsonBuilder_ == null) { if (typeCase_ == 16) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 16) { typeCase_ = 0; type_ = null; } jsonBuilder_.clear(); } return this; } /** * .prefab.Json json = 16; */ public cloud.prefab.domain.Prefab.Json.Builder getJsonBuilder() { return getJsonFieldBuilder().getBuilder(); } /** * .prefab.Json json = 16; */ @java.lang.Override public cloud.prefab.domain.Prefab.JsonOrBuilder getJsonOrBuilder() { if ((typeCase_ == 16) && (jsonBuilder_ != null)) { return jsonBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 16) { return (cloud.prefab.domain.Prefab.Json) type_; } return cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } } /** * .prefab.Json json = 16; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.Json, cloud.prefab.domain.Prefab.Json.Builder, cloud.prefab.domain.Prefab.JsonOrBuilder> getJsonFieldBuilder() { if (jsonBuilder_ == null) { if (!(typeCase_ == 16)) { type_ = cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } jsonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.Json, cloud.prefab.domain.Prefab.Json.Builder, cloud.prefab.domain.Prefab.JsonOrBuilder>( (cloud.prefab.domain.Prefab.Json) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 16; onChanged(); return jsonBuilder_; } private boolean confidential_ ; /** *
       * don't log or telemetry this value
       * 
* * optional bool confidential = 13; * @return Whether the confidential field is set. */ @java.lang.Override public boolean hasConfidential() { return ((bitField0_ & 0x00002000) != 0); } /** *
       * don't log or telemetry this value
       * 
* * optional bool confidential = 13; * @return The confidential. */ @java.lang.Override public boolean getConfidential() { return confidential_; } /** *
       * don't log or telemetry this value
       * 
* * optional bool confidential = 13; * @param value The confidential to set. * @return This builder for chaining. */ public Builder setConfidential(boolean value) { confidential_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * don't log or telemetry this value
       * 
* * optional bool confidential = 13; * @return This builder for chaining. */ public Builder clearConfidential() { bitField0_ = (bitField0_ & ~0x00002000); confidential_ = false; onChanged(); return this; } private java.lang.Object decryptWith_ = ""; /** *
       * key name to decrypt with
       * 
* * optional string decrypt_with = 14; * @return Whether the decryptWith field is set. */ public boolean hasDecryptWith() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * key name to decrypt with
       * 
* * optional string decrypt_with = 14; * @return The decryptWith. */ public java.lang.String getDecryptWith() { java.lang.Object ref = decryptWith_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); decryptWith_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * key name to decrypt with
       * 
* * optional string decrypt_with = 14; * @return The bytes for decryptWith. */ public com.google.protobuf.ByteString getDecryptWithBytes() { java.lang.Object ref = decryptWith_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); decryptWith_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * key name to decrypt with
       * 
* * optional string decrypt_with = 14; * @param value The decryptWith to set. * @return This builder for chaining. */ public Builder setDecryptWith( java.lang.String value) { if (value == null) { throw new NullPointerException(); } decryptWith_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * key name to decrypt with
       * 
* * optional string decrypt_with = 14; * @return This builder for chaining. */ public Builder clearDecryptWith() { decryptWith_ = getDefaultInstance().getDecryptWith(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** *
       * key name to decrypt with
       * 
* * optional string decrypt_with = 14; * @param value The bytes for decryptWith to set. * @return This builder for chaining. */ public Builder setDecryptWithBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); decryptWith_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ConfigValue) } // @@protoc_insertion_point(class_scope:prefab.ConfigValue) private static final cloud.prefab.domain.Prefab.ConfigValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigValue(); } public static cloud.prefab.domain.Prefab.ConfigValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JsonOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Json) com.google.protobuf.MessageOrBuilder { /** * string json = 1; * @return The json. */ java.lang.String getJson(); /** * string json = 1; * @return The bytes for json. */ com.google.protobuf.ByteString getJsonBytes(); } /** * Protobuf type {@code prefab.Json} */ public static final class Json extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Json) JsonOrBuilder { private static final long serialVersionUID = 0L; // Use Json.newBuilder() to construct. private Json(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Json() { json_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Json(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Json_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Json_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Json.class, cloud.prefab.domain.Prefab.Json.Builder.class); } public static final int JSON_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object json_ = ""; /** * string json = 1; * @return The json. */ @java.lang.Override public java.lang.String getJson() { java.lang.Object ref = json_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); json_ = s; return s; } } /** * string json = 1; * @return The bytes for json. */ @java.lang.Override public com.google.protobuf.ByteString getJsonBytes() { java.lang.Object ref = json_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); json_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(json_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, json_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(json_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, json_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Json)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Json other = (cloud.prefab.domain.Prefab.Json) obj; if (!getJson() .equals(other.getJson())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + JSON_FIELD_NUMBER; hash = (53 * hash) + getJson().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Json parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Json parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Json parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Json parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Json parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Json parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Json parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Json parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Json parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Json parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Json parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Json parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Json prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Json} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Json) cloud.prefab.domain.Prefab.JsonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Json_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Json_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Json.class, cloud.prefab.domain.Prefab.Json.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Json.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; json_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Json_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Json getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Json.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Json build() { cloud.prefab.domain.Prefab.Json result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Json buildPartial() { cloud.prefab.domain.Prefab.Json result = new cloud.prefab.domain.Prefab.Json(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.Json result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.json_ = json_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Json) { return mergeFrom((cloud.prefab.domain.Prefab.Json)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Json other) { if (other == cloud.prefab.domain.Prefab.Json.getDefaultInstance()) return this; if (!other.getJson().isEmpty()) { json_ = other.json_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { json_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object json_ = ""; /** * string json = 1; * @return The json. */ public java.lang.String getJson() { java.lang.Object ref = json_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); json_ = s; return s; } else { return (java.lang.String) ref; } } /** * string json = 1; * @return The bytes for json. */ public com.google.protobuf.ByteString getJsonBytes() { java.lang.Object ref = json_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); json_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string json = 1; * @param value The json to set. * @return This builder for chaining. */ public Builder setJson( java.lang.String value) { if (value == null) { throw new NullPointerException(); } json_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string json = 1; * @return This builder for chaining. */ public Builder clearJson() { json_ = getDefaultInstance().getJson(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string json = 1; * @param value The bytes for json to set. * @return This builder for chaining. */ public Builder setJsonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); json_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Json) } // @@protoc_insertion_point(class_scope:prefab.Json) private static final cloud.prefab.domain.Prefab.Json DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Json(); } public static cloud.prefab.domain.Prefab.Json getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Json parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Json getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IsoDurationOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.IsoDuration) com.google.protobuf.MessageOrBuilder { /** *
     * value is eg P1h30s
     * 
* * string definition = 1; * @return The definition. */ java.lang.String getDefinition(); /** *
     * value is eg P1h30s
     * 
* * string definition = 1; * @return The bytes for definition. */ com.google.protobuf.ByteString getDefinitionBytes(); } /** * Protobuf type {@code prefab.IsoDuration} */ public static final class IsoDuration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.IsoDuration) IsoDurationOrBuilder { private static final long serialVersionUID = 0L; // Use IsoDuration.newBuilder() to construct. private IsoDuration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IsoDuration() { definition_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IsoDuration(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IsoDuration.class, cloud.prefab.domain.Prefab.IsoDuration.Builder.class); } public static final int DEFINITION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object definition_ = ""; /** *
     * value is eg P1h30s
     * 
* * string definition = 1; * @return The definition. */ @java.lang.Override public java.lang.String getDefinition() { java.lang.Object ref = definition_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; } } /** *
     * value is eg P1h30s
     * 
* * string definition = 1; * @return The bytes for definition. */ @java.lang.Override public com.google.protobuf.ByteString getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, definition_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, definition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.IsoDuration)) { return super.equals(obj); } cloud.prefab.domain.Prefab.IsoDuration other = (cloud.prefab.domain.Prefab.IsoDuration) obj; if (!getDefinition() .equals(other.getDefinition())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DEFINITION_FIELD_NUMBER; hash = (53 * hash) + getDefinition().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IsoDuration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IsoDuration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IsoDuration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.IsoDuration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.IsoDuration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.IsoDuration) cloud.prefab.domain.Prefab.IsoDurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IsoDuration.class, cloud.prefab.domain.Prefab.IsoDuration.Builder.class); } // Construct using cloud.prefab.domain.Prefab.IsoDuration.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; definition_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_IsoDuration_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.IsoDuration getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.IsoDuration build() { cloud.prefab.domain.Prefab.IsoDuration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.IsoDuration buildPartial() { cloud.prefab.domain.Prefab.IsoDuration result = new cloud.prefab.domain.Prefab.IsoDuration(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.IsoDuration result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.definition_ = definition_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.IsoDuration) { return mergeFrom((cloud.prefab.domain.Prefab.IsoDuration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.IsoDuration other) { if (other == cloud.prefab.domain.Prefab.IsoDuration.getDefaultInstance()) return this; if (!other.getDefinition().isEmpty()) { definition_ = other.definition_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { definition_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object definition_ = ""; /** *
       * value is eg P1h30s
       * 
* * string definition = 1; * @return The definition. */ public java.lang.String getDefinition() { java.lang.Object ref = definition_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * value is eg P1h30s
       * 
* * string definition = 1; * @return The bytes for definition. */ public com.google.protobuf.ByteString getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); definition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * value is eg P1h30s
       * 
* * string definition = 1; * @param value The definition to set. * @return This builder for chaining. */ public Builder setDefinition( java.lang.String value) { if (value == null) { throw new NullPointerException(); } definition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * value is eg P1h30s
       * 
* * string definition = 1; * @return This builder for chaining. */ public Builder clearDefinition() { definition_ = getDefaultInstance().getDefinition(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * value is eg P1h30s
       * 
* * string definition = 1; * @param value The bytes for definition to set. * @return This builder for chaining. */ public Builder setDefinitionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); definition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.IsoDuration) } // @@protoc_insertion_point(class_scope:prefab.IsoDuration) private static final cloud.prefab.domain.Prefab.IsoDuration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IsoDuration(); } public static cloud.prefab.domain.Prefab.IsoDuration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IsoDuration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.IsoDuration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProvidedOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Provided) com.google.protobuf.MessageOrBuilder { /** * optional .prefab.ProvidedSource source = 1; * @return Whether the source field is set. */ boolean hasSource(); /** * optional .prefab.ProvidedSource source = 1; * @return The enum numeric value on the wire for source. */ int getSourceValue(); /** * optional .prefab.ProvidedSource source = 1; * @return The source. */ cloud.prefab.domain.Prefab.ProvidedSource getSource(); /** *
     * eg MY_ENV_VAR
     * 
* * optional string lookup = 2; * @return Whether the lookup field is set. */ boolean hasLookup(); /** *
     * eg MY_ENV_VAR
     * 
* * optional string lookup = 2; * @return The lookup. */ java.lang.String getLookup(); /** *
     * eg MY_ENV_VAR
     * 
* * optional string lookup = 2; * @return The bytes for lookup. */ com.google.protobuf.ByteString getLookupBytes(); } /** * Protobuf type {@code prefab.Provided} */ public static final class Provided extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Provided) ProvidedOrBuilder { private static final long serialVersionUID = 0L; // Use Provided.newBuilder() to construct. private Provided(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Provided() { source_ = 0; lookup_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Provided(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Provided.class, cloud.prefab.domain.Prefab.Provided.Builder.class); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private int source_ = 0; /** * optional .prefab.ProvidedSource source = 1; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .prefab.ProvidedSource source = 1; * @return The enum numeric value on the wire for source. */ @java.lang.Override public int getSourceValue() { return source_; } /** * optional .prefab.ProvidedSource source = 1; * @return The source. */ @java.lang.Override public cloud.prefab.domain.Prefab.ProvidedSource getSource() { cloud.prefab.domain.Prefab.ProvidedSource result = cloud.prefab.domain.Prefab.ProvidedSource.forNumber(source_); return result == null ? cloud.prefab.domain.Prefab.ProvidedSource.UNRECOGNIZED : result; } public static final int LOOKUP_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object lookup_ = ""; /** *
     * eg MY_ENV_VAR
     * 
* * optional string lookup = 2; * @return Whether the lookup field is set. */ @java.lang.Override public boolean hasLookup() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * eg MY_ENV_VAR
     * 
* * optional string lookup = 2; * @return The lookup. */ @java.lang.Override public java.lang.String getLookup() { java.lang.Object ref = lookup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lookup_ = s; return s; } } /** *
     * eg MY_ENV_VAR
     * 
* * optional string lookup = 2; * @return The bytes for lookup. */ @java.lang.Override public com.google.protobuf.ByteString getLookupBytes() { java.lang.Object ref = lookup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, source_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lookup_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, source_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lookup_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Provided)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Provided other = (cloud.prefab.domain.Prefab.Provided) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (source_ != other.source_) return false; } if (hasLookup() != other.hasLookup()) return false; if (hasLookup()) { if (!getLookup() .equals(other.getLookup())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + source_; } if (hasLookup()) { hash = (37 * hash) + LOOKUP_FIELD_NUMBER; hash = (53 * hash) + getLookup().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Provided parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Provided parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Provided parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Provided parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Provided parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Provided parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Provided parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Provided parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Provided parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Provided parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Provided parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Provided parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Provided prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Provided} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Provided) cloud.prefab.domain.Prefab.ProvidedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Provided.class, cloud.prefab.domain.Prefab.Provided.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Provided.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; source_ = 0; lookup_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Provided_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Provided getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Provided.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Provided build() { cloud.prefab.domain.Prefab.Provided result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Provided buildPartial() { cloud.prefab.domain.Prefab.Provided result = new cloud.prefab.domain.Prefab.Provided(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.Provided result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.source_ = source_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.lookup_ = lookup_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Provided) { return mergeFrom((cloud.prefab.domain.Prefab.Provided)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Provided other) { if (other == cloud.prefab.domain.Prefab.Provided.getDefaultInstance()) return this; if (other.hasSource()) { setSource(other.getSource()); } if (other.hasLookup()) { lookup_ = other.lookup_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { source_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { lookup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int source_ = 0; /** * optional .prefab.ProvidedSource source = 1; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .prefab.ProvidedSource source = 1; * @return The enum numeric value on the wire for source. */ @java.lang.Override public int getSourceValue() { return source_; } /** * optional .prefab.ProvidedSource source = 1; * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ public Builder setSourceValue(int value) { source_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .prefab.ProvidedSource source = 1; * @return The source. */ @java.lang.Override public cloud.prefab.domain.Prefab.ProvidedSource getSource() { cloud.prefab.domain.Prefab.ProvidedSource result = cloud.prefab.domain.Prefab.ProvidedSource.forNumber(source_); return result == null ? cloud.prefab.domain.Prefab.ProvidedSource.UNRECOGNIZED : result; } /** * optional .prefab.ProvidedSource source = 1; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource(cloud.prefab.domain.Prefab.ProvidedSource value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; source_ = value.getNumber(); onChanged(); return this; } /** * optional .prefab.ProvidedSource source = 1; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000001); source_ = 0; onChanged(); return this; } private java.lang.Object lookup_ = ""; /** *
       * eg MY_ENV_VAR
       * 
* * optional string lookup = 2; * @return Whether the lookup field is set. */ public boolean hasLookup() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * eg MY_ENV_VAR
       * 
* * optional string lookup = 2; * @return The lookup. */ public java.lang.String getLookup() { java.lang.Object ref = lookup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lookup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * eg MY_ENV_VAR
       * 
* * optional string lookup = 2; * @return The bytes for lookup. */ public com.google.protobuf.ByteString getLookupBytes() { java.lang.Object ref = lookup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * eg MY_ENV_VAR
       * 
* * optional string lookup = 2; * @param value The lookup to set. * @return This builder for chaining. */ public Builder setLookup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lookup_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * eg MY_ENV_VAR
       * 
* * optional string lookup = 2; * @return This builder for chaining. */ public Builder clearLookup() { lookup_ = getDefaultInstance().getLookup(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * eg MY_ENV_VAR
       * 
* * optional string lookup = 2; * @param value The bytes for lookup to set. * @return This builder for chaining. */ public Builder setLookupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lookup_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Provided) } // @@protoc_insertion_point(class_scope:prefab.Provided) private static final cloud.prefab.domain.Prefab.Provided DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Provided(); } public static cloud.prefab.domain.Prefab.Provided getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Provided parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Provided getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.IntRange) com.google.protobuf.MessageOrBuilder { /** *
     * if empty treat as Long.MIN_VALUE. Inclusive
     * 
* * optional int64 start = 1; * @return Whether the start field is set. */ boolean hasStart(); /** *
     * if empty treat as Long.MIN_VALUE. Inclusive
     * 
* * optional int64 start = 1; * @return The start. */ long getStart(); /** *
     * if empty treat as Long.MAX_VALUE. Exclusive
     * 
* * optional int64 end = 2; * @return Whether the end field is set. */ boolean hasEnd(); /** *
     * if empty treat as Long.MAX_VALUE. Exclusive
     * 
* * optional int64 end = 2; * @return The end. */ long getEnd(); } /** * Protobuf type {@code prefab.IntRange} */ public static final class IntRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.IntRange) IntRangeOrBuilder { private static final long serialVersionUID = 0L; // Use IntRange.newBuilder() to construct. private IntRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IntRange(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IntRange.class, cloud.prefab.domain.Prefab.IntRange.Builder.class); } private int bitField0_; public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** *
     * if empty treat as Long.MIN_VALUE. Inclusive
     * 
* * optional int64 start = 1; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * if empty treat as Long.MIN_VALUE. Inclusive
     * 
* * optional int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** *
     * if empty treat as Long.MAX_VALUE. Exclusive
     * 
* * optional int64 end = 2; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * if empty treat as Long.MAX_VALUE. Exclusive
     * 
* * optional int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, end_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, start_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, end_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.IntRange)) { return super.equals(obj); } cloud.prefab.domain.Prefab.IntRange other = (cloud.prefab.domain.Prefab.IntRange) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (getStart() != other.getStart()) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (getEnd() != other.getEnd()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStart()); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnd()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.IntRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IntRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.IntRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IntRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IntRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.IntRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.IntRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.IntRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.IntRange) cloud.prefab.domain.Prefab.IntRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.IntRange.class, cloud.prefab.domain.Prefab.IntRange.Builder.class); } // Construct using cloud.prefab.domain.Prefab.IntRange.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0L; end_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_IntRange_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.IntRange getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.IntRange build() { cloud.prefab.domain.Prefab.IntRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.IntRange buildPartial() { cloud.prefab.domain.Prefab.IntRange result = new cloud.prefab.domain.Prefab.IntRange(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.IntRange result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.IntRange) { return mergeFrom((cloud.prefab.domain.Prefab.IntRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.IntRange other) { if (other == cloud.prefab.domain.Prefab.IntRange.getDefaultInstance()) return this; if (other.hasStart()) { setStart(other.getStart()); } if (other.hasEnd()) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { start_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { end_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long start_ ; /** *
       * if empty treat as Long.MIN_VALUE. Inclusive
       * 
* * optional int64 start = 1; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * if empty treat as Long.MIN_VALUE. Inclusive
       * 
* * optional int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** *
       * if empty treat as Long.MIN_VALUE. Inclusive
       * 
* * optional int64 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * if empty treat as Long.MIN_VALUE. Inclusive
       * 
* * optional int64 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0L; onChanged(); return this; } private long end_ ; /** *
       * if empty treat as Long.MAX_VALUE. Exclusive
       * 
* * optional int64 end = 2; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * if empty treat as Long.MAX_VALUE. Exclusive
       * 
* * optional int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } /** *
       * if empty treat as Long.MAX_VALUE. Exclusive
       * 
* * optional int64 end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * if empty treat as Long.MAX_VALUE. Exclusive
       * 
* * optional int64 end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.IntRange) } // @@protoc_insertion_point(class_scope:prefab.IntRange) private static final cloud.prefab.domain.Prefab.IntRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.IntRange(); } public static cloud.prefab.domain.Prefab.IntRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.IntRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StringListOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.StringList) com.google.protobuf.MessageOrBuilder { /** * repeated string values = 1; * @return A list containing the values. */ java.util.List getValuesList(); /** * repeated string values = 1; * @return The count of values. */ int getValuesCount(); /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * Protobuf type {@code prefab.StringList} */ public static final class StringList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.StringList) StringListOrBuilder { private static final long serialVersionUID = 0L; // Use StringList.newBuilder() to construct. private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StringList() { values_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StringList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.StringList.class, cloud.prefab.domain.Prefab.StringList.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * repeated string values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.StringList)) { return super.equals(obj); } cloud.prefab.domain.Prefab.StringList other = (cloud.prefab.domain.Prefab.StringList) obj; if (!getValuesList() .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.StringList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.StringList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.StringList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.StringList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.StringList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.StringList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.StringList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.StringList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.StringList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.StringList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.StringList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.StringList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.StringList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.StringList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.StringList) cloud.prefab.domain.Prefab.StringListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.StringList.class, cloud.prefab.domain.Prefab.StringList.Builder.class); } // Construct using cloud.prefab.domain.Prefab.StringList.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; values_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_StringList_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.StringList getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.StringList build() { cloud.prefab.domain.Prefab.StringList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.StringList buildPartial() { cloud.prefab.domain.Prefab.StringList result = new cloud.prefab.domain.Prefab.StringList(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.StringList result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { values_.makeImmutable(); result.values_ = values_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.StringList) { return mergeFrom((cloud.prefab.domain.Prefab.StringList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.StringList other) { if (other == cloud.prefab.domain.Prefab.StringList.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ |= 0x00000001; } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureValuesIsMutable(); values_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList values_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); } bitField0_ |= 0x00000001; } /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { values_.makeImmutable(); return values_; } /** * repeated string values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * repeated string values = 1; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string values = 1; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string values = 1; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string values = 1; * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string values = 1; * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.StringList) } // @@protoc_insertion_point(class_scope:prefab.StringList) private static final cloud.prefab.domain.Prefab.StringList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.StringList(); } public static cloud.prefab.domain.Prefab.StringList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StringList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.StringList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WeightedValueOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.WeightedValue) com.google.protobuf.MessageOrBuilder { /** *
     * out of 1000
     * 
* * int32 weight = 1; * @return The weight. */ int getWeight(); /** * .prefab.ConfigValue value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .prefab.ConfigValue value = 2; * @return The value. */ cloud.prefab.domain.Prefab.ConfigValue getValue(); /** * .prefab.ConfigValue value = 2; */ cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code prefab.WeightedValue} */ public static final class WeightedValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.WeightedValue) WeightedValueOrBuilder { private static final long serialVersionUID = 0L; // Use WeightedValue.newBuilder() to construct. private WeightedValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WeightedValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WeightedValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.WeightedValue.class, cloud.prefab.domain.Prefab.WeightedValue.Builder.class); } private int bitField0_; public static final int WEIGHT_FIELD_NUMBER = 1; private int weight_ = 0; /** *
     * out of 1000
     * 
* * int32 weight = 1; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } public static final int VALUE_FIELD_NUMBER = 2; private cloud.prefab.domain.Prefab.ConfigValue value_; /** * .prefab.ConfigValue value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ConfigValue value = 2; * @return The value. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getValue() { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } /** * .prefab.ConfigValue value = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (weight_ != 0) { output.writeInt32(1, weight_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, weight_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.WeightedValue)) { return super.equals(obj); } cloud.prefab.domain.Prefab.WeightedValue other = (cloud.prefab.domain.Prefab.WeightedValue) obj; if (getWeight() != other.getWeight()) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.WeightedValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.WeightedValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.WeightedValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.WeightedValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.WeightedValue) cloud.prefab.domain.Prefab.WeightedValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.WeightedValue.class, cloud.prefab.domain.Prefab.WeightedValue.Builder.class); } // Construct using cloud.prefab.domain.Prefab.WeightedValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; weight_ = 0; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValue_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValue getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.WeightedValue.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValue build() { cloud.prefab.domain.Prefab.WeightedValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValue buildPartial() { cloud.prefab.domain.Prefab.WeightedValue result = new cloud.prefab.domain.Prefab.WeightedValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.WeightedValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.weight_ = weight_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.WeightedValue) { return mergeFrom((cloud.prefab.domain.Prefab.WeightedValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.WeightedValue other) { if (other == cloud.prefab.domain.Prefab.WeightedValue.getDefaultInstance()) return this; if (other.getWeight() != 0) { setWeight(other.getWeight()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { weight_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int weight_ ; /** *
       * out of 1000
       * 
* * int32 weight = 1; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } /** *
       * out of 1000
       * 
* * int32 weight = 1; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { weight_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * out of 1000
       * 
* * int32 weight = 1; * @return This builder for chaining. */ public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000001); weight_ = 0; onChanged(); return this; } private cloud.prefab.domain.Prefab.ConfigValue value_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> valueBuilder_; /** * .prefab.ConfigValue value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * .prefab.ConfigValue value = 2; * @return The value. */ public cloud.prefab.domain.Prefab.ConfigValue getValue() { if (valueBuilder_ == null) { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .prefab.ConfigValue value = 2; */ public Builder setValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ConfigValue value = 2; */ public Builder setValue( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ConfigValue value = 2; */ public Builder mergeValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .prefab.ConfigValue value = 2; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .prefab.ConfigValue value = 2; */ public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } } /** * .prefab.ConfigValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.WeightedValue) } // @@protoc_insertion_point(class_scope:prefab.WeightedValue) private static final cloud.prefab.domain.Prefab.WeightedValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.WeightedValue(); } public static cloud.prefab.domain.Prefab.WeightedValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WeightedValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WeightedValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.WeightedValues) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.WeightedValue weighted_values = 1; */ java.util.List getWeightedValuesList(); /** * repeated .prefab.WeightedValue weighted_values = 1; */ cloud.prefab.domain.Prefab.WeightedValue getWeightedValues(int index); /** * repeated .prefab.WeightedValue weighted_values = 1; */ int getWeightedValuesCount(); /** * repeated .prefab.WeightedValue weighted_values = 1; */ java.util.List getWeightedValuesOrBuilderList(); /** * repeated .prefab.WeightedValue weighted_values = 1; */ cloud.prefab.domain.Prefab.WeightedValueOrBuilder getWeightedValuesOrBuilder( int index); /** * optional string hash_by_property_name = 2; * @return Whether the hashByPropertyName field is set. */ boolean hasHashByPropertyName(); /** * optional string hash_by_property_name = 2; * @return The hashByPropertyName. */ java.lang.String getHashByPropertyName(); /** * optional string hash_by_property_name = 2; * @return The bytes for hashByPropertyName. */ com.google.protobuf.ByteString getHashByPropertyNameBytes(); } /** * Protobuf type {@code prefab.WeightedValues} */ public static final class WeightedValues extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.WeightedValues) WeightedValuesOrBuilder { private static final long serialVersionUID = 0L; // Use WeightedValues.newBuilder() to construct. private WeightedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WeightedValues() { weightedValues_ = java.util.Collections.emptyList(); hashByPropertyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WeightedValues(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.WeightedValues.class, cloud.prefab.domain.Prefab.WeightedValues.Builder.class); } private int bitField0_; public static final int WEIGHTED_VALUES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List weightedValues_; /** * repeated .prefab.WeightedValue weighted_values = 1; */ @java.lang.Override public java.util.List getWeightedValuesList() { return weightedValues_; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ @java.lang.Override public java.util.List getWeightedValuesOrBuilderList() { return weightedValues_; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ @java.lang.Override public int getWeightedValuesCount() { return weightedValues_.size(); } /** * repeated .prefab.WeightedValue weighted_values = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValue getWeightedValues(int index) { return weightedValues_.get(index); } /** * repeated .prefab.WeightedValue weighted_values = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValueOrBuilder getWeightedValuesOrBuilder( int index) { return weightedValues_.get(index); } public static final int HASH_BY_PROPERTY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object hashByPropertyName_ = ""; /** * optional string hash_by_property_name = 2; * @return Whether the hashByPropertyName field is set. */ @java.lang.Override public boolean hasHashByPropertyName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string hash_by_property_name = 2; * @return The hashByPropertyName. */ @java.lang.Override public java.lang.String getHashByPropertyName() { java.lang.Object ref = hashByPropertyName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hashByPropertyName_ = s; return s; } } /** * optional string hash_by_property_name = 2; * @return The bytes for hashByPropertyName. */ @java.lang.Override public com.google.protobuf.ByteString getHashByPropertyNameBytes() { java.lang.Object ref = hashByPropertyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hashByPropertyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < weightedValues_.size(); i++) { output.writeMessage(1, weightedValues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hashByPropertyName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < weightedValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, weightedValues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hashByPropertyName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.WeightedValues)) { return super.equals(obj); } cloud.prefab.domain.Prefab.WeightedValues other = (cloud.prefab.domain.Prefab.WeightedValues) obj; if (!getWeightedValuesList() .equals(other.getWeightedValuesList())) return false; if (hasHashByPropertyName() != other.hasHashByPropertyName()) return false; if (hasHashByPropertyName()) { if (!getHashByPropertyName() .equals(other.getHashByPropertyName())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getWeightedValuesCount() > 0) { hash = (37 * hash) + WEIGHTED_VALUES_FIELD_NUMBER; hash = (53 * hash) + getWeightedValuesList().hashCode(); } if (hasHashByPropertyName()) { hash = (37 * hash) + HASH_BY_PROPERTY_NAME_FIELD_NUMBER; hash = (53 * hash) + getHashByPropertyName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValues parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.WeightedValues parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.WeightedValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.WeightedValues prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.WeightedValues} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.WeightedValues) cloud.prefab.domain.Prefab.WeightedValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.WeightedValues.class, cloud.prefab.domain.Prefab.WeightedValues.Builder.class); } // Construct using cloud.prefab.domain.Prefab.WeightedValues.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (weightedValuesBuilder_ == null) { weightedValues_ = java.util.Collections.emptyList(); } else { weightedValues_ = null; weightedValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); hashByPropertyName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_WeightedValues_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues build() { cloud.prefab.domain.Prefab.WeightedValues result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues buildPartial() { cloud.prefab.domain.Prefab.WeightedValues result = new cloud.prefab.domain.Prefab.WeightedValues(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.WeightedValues result) { if (weightedValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { weightedValues_ = java.util.Collections.unmodifiableList(weightedValues_); bitField0_ = (bitField0_ & ~0x00000001); } result.weightedValues_ = weightedValues_; } else { result.weightedValues_ = weightedValuesBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.WeightedValues result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.hashByPropertyName_ = hashByPropertyName_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.WeightedValues) { return mergeFrom((cloud.prefab.domain.Prefab.WeightedValues)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.WeightedValues other) { if (other == cloud.prefab.domain.Prefab.WeightedValues.getDefaultInstance()) return this; if (weightedValuesBuilder_ == null) { if (!other.weightedValues_.isEmpty()) { if (weightedValues_.isEmpty()) { weightedValues_ = other.weightedValues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWeightedValuesIsMutable(); weightedValues_.addAll(other.weightedValues_); } onChanged(); } } else { if (!other.weightedValues_.isEmpty()) { if (weightedValuesBuilder_.isEmpty()) { weightedValuesBuilder_.dispose(); weightedValuesBuilder_ = null; weightedValues_ = other.weightedValues_; bitField0_ = (bitField0_ & ~0x00000001); weightedValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWeightedValuesFieldBuilder() : null; } else { weightedValuesBuilder_.addAllMessages(other.weightedValues_); } } } if (other.hasHashByPropertyName()) { hashByPropertyName_ = other.hashByPropertyName_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.WeightedValue m = input.readMessage( cloud.prefab.domain.Prefab.WeightedValue.parser(), extensionRegistry); if (weightedValuesBuilder_ == null) { ensureWeightedValuesIsMutable(); weightedValues_.add(m); } else { weightedValuesBuilder_.addMessage(m); } break; } // case 10 case 18: { hashByPropertyName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List weightedValues_ = java.util.Collections.emptyList(); private void ensureWeightedValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { weightedValues_ = new java.util.ArrayList(weightedValues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.WeightedValue, cloud.prefab.domain.Prefab.WeightedValue.Builder, cloud.prefab.domain.Prefab.WeightedValueOrBuilder> weightedValuesBuilder_; /** * repeated .prefab.WeightedValue weighted_values = 1; */ public java.util.List getWeightedValuesList() { if (weightedValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(weightedValues_); } else { return weightedValuesBuilder_.getMessageList(); } } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public int getWeightedValuesCount() { if (weightedValuesBuilder_ == null) { return weightedValues_.size(); } else { return weightedValuesBuilder_.getCount(); } } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public cloud.prefab.domain.Prefab.WeightedValue getWeightedValues(int index) { if (weightedValuesBuilder_ == null) { return weightedValues_.get(index); } else { return weightedValuesBuilder_.getMessage(index); } } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder setWeightedValues( int index, cloud.prefab.domain.Prefab.WeightedValue value) { if (weightedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightedValuesIsMutable(); weightedValues_.set(index, value); onChanged(); } else { weightedValuesBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder setWeightedValues( int index, cloud.prefab.domain.Prefab.WeightedValue.Builder builderForValue) { if (weightedValuesBuilder_ == null) { ensureWeightedValuesIsMutable(); weightedValues_.set(index, builderForValue.build()); onChanged(); } else { weightedValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder addWeightedValues(cloud.prefab.domain.Prefab.WeightedValue value) { if (weightedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightedValuesIsMutable(); weightedValues_.add(value); onChanged(); } else { weightedValuesBuilder_.addMessage(value); } return this; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder addWeightedValues( int index, cloud.prefab.domain.Prefab.WeightedValue value) { if (weightedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeightedValuesIsMutable(); weightedValues_.add(index, value); onChanged(); } else { weightedValuesBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder addWeightedValues( cloud.prefab.domain.Prefab.WeightedValue.Builder builderForValue) { if (weightedValuesBuilder_ == null) { ensureWeightedValuesIsMutable(); weightedValues_.add(builderForValue.build()); onChanged(); } else { weightedValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder addWeightedValues( int index, cloud.prefab.domain.Prefab.WeightedValue.Builder builderForValue) { if (weightedValuesBuilder_ == null) { ensureWeightedValuesIsMutable(); weightedValues_.add(index, builderForValue.build()); onChanged(); } else { weightedValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.WeightedValue weighted_values = 1; */ public Builder addAllWeightedValues( java.lang.Iterable 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_; } private java.lang.Object hashByPropertyName_ = ""; /** * optional string hash_by_property_name = 2; * @return Whether the hashByPropertyName field is set. */ public boolean hasHashByPropertyName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string hash_by_property_name = 2; * @return The hashByPropertyName. */ public java.lang.String getHashByPropertyName() { java.lang.Object ref = hashByPropertyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hashByPropertyName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string hash_by_property_name = 2; * @return The bytes for hashByPropertyName. */ public com.google.protobuf.ByteString getHashByPropertyNameBytes() { java.lang.Object ref = hashByPropertyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hashByPropertyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string hash_by_property_name = 2; * @param value The hashByPropertyName to set. * @return This builder for chaining. */ public Builder setHashByPropertyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hashByPropertyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string hash_by_property_name = 2; * @return This builder for chaining. */ public Builder clearHashByPropertyName() { hashByPropertyName_ = getDefaultInstance().getHashByPropertyName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string hash_by_property_name = 2; * @param value The bytes for hashByPropertyName to set. * @return This builder for chaining. */ public Builder setHashByPropertyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hashByPropertyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.WeightedValues) } // @@protoc_insertion_point(class_scope:prefab.WeightedValues) private static final cloud.prefab.domain.Prefab.WeightedValues DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.WeightedValues(); } public static cloud.prefab.domain.Prefab.WeightedValues getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WeightedValues parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.WeightedValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApiKeyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ApiKeyMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * numeric currently, but making it string will be more flexible over time
     * 
* * optional string key_id = 1; * @return Whether the keyId field is set. */ boolean hasKeyId(); /** *
     * numeric currently, but making it string will be more flexible over time
     * 
* * optional string key_id = 1; * @return The keyId. */ java.lang.String getKeyId(); /** *
     * numeric currently, but making it string will be more flexible over time
     * 
* * optional string key_id = 1; * @return The bytes for keyId. */ com.google.protobuf.ByteString getKeyIdBytes(); /** *
     *ditto
     * 
* * optional string user_id = 3; * @return Whether the userId field is set. */ boolean hasUserId(); /** *
     *ditto
     * 
* * optional string user_id = 3; * @return The userId. */ java.lang.String getUserId(); /** *
     *ditto
     * 
* * optional string user_id = 3; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); } /** * Protobuf type {@code prefab.ApiKeyMetadata} */ public static final class ApiKeyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ApiKeyMetadata) ApiKeyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use ApiKeyMetadata.newBuilder() to construct. private ApiKeyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApiKeyMetadata() { keyId_ = ""; userId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApiKeyMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ApiKeyMetadata.class, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder.class); } private int bitField0_; public static final int KEY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object keyId_ = ""; /** *
     * numeric currently, but making it string will be more flexible over time
     * 
* * optional string key_id = 1; * @return Whether the keyId field is set. */ @java.lang.Override public boolean hasKeyId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * numeric currently, but making it string will be more flexible over time
     * 
* * optional string key_id = 1; * @return The keyId. */ @java.lang.Override public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } } /** *
     * numeric currently, but making it string will be more flexible over time
     * 
* * optional string key_id = 1; * @return The bytes for keyId. */ @java.lang.Override public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object userId_ = ""; /** *
     *ditto
     * 
* * optional string user_id = 3; * @return Whether the userId field is set. */ @java.lang.Override public boolean hasUserId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *ditto
     * 
* * optional string user_id = 3; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** *
     *ditto
     * 
* * optional string user_id = 3; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ApiKeyMetadata)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ApiKeyMetadata other = (cloud.prefab.domain.Prefab.ApiKeyMetadata) obj; if (hasKeyId() != other.hasKeyId()) return false; if (hasKeyId()) { if (!getKeyId() .equals(other.getKeyId())) return false; } if (hasUserId() != other.hasUserId()) return false; if (hasUserId()) { if (!getUserId() .equals(other.getUserId())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKeyId()) { hash = (37 * hash) + KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getKeyId().hashCode(); } if (hasUserId()) { hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ApiKeyMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ApiKeyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ApiKeyMetadata) cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ApiKeyMetadata.class, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ApiKeyMetadata.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; keyId_ = ""; userId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ApiKeyMetadata_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadata getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadata build() { cloud.prefab.domain.Prefab.ApiKeyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadata buildPartial() { cloud.prefab.domain.Prefab.ApiKeyMetadata result = new cloud.prefab.domain.Prefab.ApiKeyMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ApiKeyMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.keyId_ = keyId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.userId_ = userId_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ApiKeyMetadata) { return mergeFrom((cloud.prefab.domain.Prefab.ApiKeyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ApiKeyMetadata other) { if (other == cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance()) return this; if (other.hasKeyId()) { keyId_ = other.keyId_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasUserId()) { userId_ = other.userId_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { keyId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 26: { userId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object keyId_ = ""; /** *
       * numeric currently, but making it string will be more flexible over time
       * 
* * optional string key_id = 1; * @return Whether the keyId field is set. */ public boolean hasKeyId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * numeric currently, but making it string will be more flexible over time
       * 
* * optional string key_id = 1; * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); keyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * numeric currently, but making it string will be more flexible over time
       * 
* * optional string key_id = 1; * @return The bytes for keyId. */ public com.google.protobuf.ByteString getKeyIdBytes() { java.lang.Object ref = keyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * numeric currently, but making it string will be more flexible over time
       * 
* * optional string key_id = 1; * @param value The keyId to set. * @return This builder for chaining. */ public Builder setKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * numeric currently, but making it string will be more flexible over time
       * 
* * optional string key_id = 1; * @return This builder for chaining. */ public Builder clearKeyId() { keyId_ = getDefaultInstance().getKeyId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * numeric currently, but making it string will be more flexible over time
       * 
* * optional string key_id = 1; * @param value The bytes for keyId to set. * @return This builder for chaining. */ public Builder setKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object userId_ = ""; /** *
       *ditto
       * 
* * optional string user_id = 3; * @return Whether the userId field is set. */ public boolean hasUserId() { return ((bitField0_ & 0x00000002) != 0); } /** *
       *ditto
       * 
* * optional string user_id = 3; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *ditto
       * 
* * optional string user_id = 3; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *ditto
       * 
* * optional string user_id = 3; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       *ditto
       * 
* * optional string user_id = 3; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       *ditto
       * 
* * optional string user_id = 3; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ApiKeyMetadata) } // @@protoc_insertion_point(class_scope:prefab.ApiKeyMetadata) private static final cloud.prefab.domain.Prefab.ApiKeyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ApiKeyMetadata(); } public static cloud.prefab.domain.Prefab.ApiKeyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApiKeyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Configs) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.Config configs = 1; */ java.util.List getConfigsList(); /** * repeated .prefab.Config configs = 1; */ cloud.prefab.domain.Prefab.Config getConfigs(int index); /** * repeated .prefab.Config configs = 1; */ int getConfigsCount(); /** * repeated .prefab.Config configs = 1; */ java.util.List getConfigsOrBuilderList(); /** * repeated .prefab.Config configs = 1; */ cloud.prefab.domain.Prefab.ConfigOrBuilder getConfigsOrBuilder( int index); /** * .prefab.ConfigServicePointer config_service_pointer = 2; * @return Whether the configServicePointer field is set. */ boolean hasConfigServicePointer(); /** * .prefab.ConfigServicePointer config_service_pointer = 2; * @return The configServicePointer. */ cloud.prefab.domain.Prefab.ConfigServicePointer getConfigServicePointer(); /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder getConfigServicePointerOrBuilder(); /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; * @return Whether the apikeyMetadata field is set. */ boolean hasApikeyMetadata(); /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; * @return The apikeyMetadata. */ cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata(); /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder(); /** * optional .prefab.ContextSet default_context = 4; * @return Whether the defaultContext field is set. */ boolean hasDefaultContext(); /** * optional .prefab.ContextSet default_context = 4; * @return The defaultContext. */ cloud.prefab.domain.Prefab.ContextSet getDefaultContext(); /** * optional .prefab.ContextSet default_context = 4; */ cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder(); /** * optional bool keep_alive = 5; * @return Whether the keepAlive field is set. */ boolean hasKeepAlive(); /** * optional bool keep_alive = 5; * @return The keepAlive. */ boolean getKeepAlive(); } /** * Protobuf type {@code prefab.Configs} */ public static final class Configs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Configs) ConfigsOrBuilder { private static final long serialVersionUID = 0L; // Use Configs.newBuilder() to construct. private Configs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Configs() { configs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Configs(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Configs.class, cloud.prefab.domain.Prefab.Configs.Builder.class); } private int bitField0_; public static final int CONFIGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List configs_; /** * repeated .prefab.Config configs = 1; */ @java.lang.Override public java.util.List getConfigsList() { return configs_; } /** * repeated .prefab.Config configs = 1; */ @java.lang.Override public java.util.List getConfigsOrBuilderList() { return configs_; } /** * repeated .prefab.Config configs = 1; */ @java.lang.Override public int getConfigsCount() { return configs_.size(); } /** * repeated .prefab.Config configs = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.Config getConfigs(int index) { return configs_.get(index); } /** * repeated .prefab.Config configs = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigOrBuilder getConfigsOrBuilder( int index) { return configs_.get(index); } public static final int CONFIG_SERVICE_POINTER_FIELD_NUMBER = 2; private cloud.prefab.domain.Prefab.ConfigServicePointer configServicePointer_; /** * .prefab.ConfigServicePointer config_service_pointer = 2; * @return Whether the configServicePointer field is set. */ @java.lang.Override public boolean hasConfigServicePointer() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ConfigServicePointer config_service_pointer = 2; * @return The configServicePointer. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigServicePointer getConfigServicePointer() { return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder getConfigServicePointerOrBuilder() { return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_; } public static final int APIKEY_METADATA_FIELD_NUMBER = 3; private cloud.prefab.domain.Prefab.ApiKeyMetadata apikeyMetadata_; /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; * @return Whether the apikeyMetadata field is set. */ @java.lang.Override public boolean hasApikeyMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; * @return The apikeyMetadata. */ @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata() { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder() { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } public static final int DEFAULT_CONTEXT_FIELD_NUMBER = 4; private cloud.prefab.domain.Prefab.ContextSet defaultContext_; /** * optional .prefab.ContextSet default_context = 4; * @return Whether the defaultContext field is set. */ @java.lang.Override public boolean hasDefaultContext() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .prefab.ContextSet default_context = 4; * @return The defaultContext. */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet getDefaultContext() { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } /** * optional .prefab.ContextSet default_context = 4; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder() { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } public static final int KEEP_ALIVE_FIELD_NUMBER = 5; private boolean keepAlive_ = false; /** * optional bool keep_alive = 5; * @return Whether the keepAlive field is set. */ @java.lang.Override public boolean hasKeepAlive() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool keep_alive = 5; * @return The keepAlive. */ @java.lang.Override public boolean getKeepAlive() { return keepAlive_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < configs_.size(); i++) { output.writeMessage(1, configs_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getConfigServicePointer()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getApikeyMetadata()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getDefaultContext()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(5, keepAlive_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < configs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, configs_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConfigServicePointer()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getApikeyMetadata()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDefaultContext()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, keepAlive_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Configs)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Configs other = (cloud.prefab.domain.Prefab.Configs) obj; if (!getConfigsList() .equals(other.getConfigsList())) return false; if (hasConfigServicePointer() != other.hasConfigServicePointer()) return false; if (hasConfigServicePointer()) { if (!getConfigServicePointer() .equals(other.getConfigServicePointer())) return false; } if (hasApikeyMetadata() != other.hasApikeyMetadata()) return false; if (hasApikeyMetadata()) { if (!getApikeyMetadata() .equals(other.getApikeyMetadata())) return false; } if (hasDefaultContext() != other.hasDefaultContext()) return false; if (hasDefaultContext()) { if (!getDefaultContext() .equals(other.getDefaultContext())) return false; } if (hasKeepAlive() != other.hasKeepAlive()) return false; if (hasKeepAlive()) { if (getKeepAlive() != other.getKeepAlive()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConfigsCount() > 0) { hash = (37 * hash) + CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getConfigsList().hashCode(); } if (hasConfigServicePointer()) { hash = (37 * hash) + CONFIG_SERVICE_POINTER_FIELD_NUMBER; hash = (53 * hash) + getConfigServicePointer().hashCode(); } if (hasApikeyMetadata()) { hash = (37 * hash) + APIKEY_METADATA_FIELD_NUMBER; hash = (53 * hash) + getApikeyMetadata().hashCode(); } if (hasDefaultContext()) { hash = (37 * hash) + DEFAULT_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getDefaultContext().hashCode(); } if (hasKeepAlive()) { hash = (37 * hash) + KEEP_ALIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeepAlive()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Configs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Configs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Configs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Configs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Configs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Configs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Configs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Configs parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Configs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Configs parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Configs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Configs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Configs prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Configs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Configs) cloud.prefab.domain.Prefab.ConfigsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Configs.class, cloud.prefab.domain.Prefab.Configs.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Configs.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConfigsFieldBuilder(); getConfigServicePointerFieldBuilder(); getApikeyMetadataFieldBuilder(); getDefaultContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (configsBuilder_ == null) { configs_ = java.util.Collections.emptyList(); } else { configs_ = null; configsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); configServicePointer_ = null; if (configServicePointerBuilder_ != null) { configServicePointerBuilder_.dispose(); configServicePointerBuilder_ = null; } apikeyMetadata_ = null; if (apikeyMetadataBuilder_ != null) { apikeyMetadataBuilder_.dispose(); apikeyMetadataBuilder_ = null; } defaultContext_ = null; if (defaultContextBuilder_ != null) { defaultContextBuilder_.dispose(); defaultContextBuilder_ = null; } keepAlive_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Configs_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Configs getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Configs.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Configs build() { cloud.prefab.domain.Prefab.Configs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Configs buildPartial() { cloud.prefab.domain.Prefab.Configs result = new cloud.prefab.domain.Prefab.Configs(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.Configs result) { if (configsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { configs_ = java.util.Collections.unmodifiableList(configs_); bitField0_ = (bitField0_ & ~0x00000001); } result.configs_ = configs_; } else { result.configs_ = configsBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.Configs result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.configServicePointer_ = configServicePointerBuilder_ == null ? configServicePointer_ : configServicePointerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.apikeyMetadata_ = apikeyMetadataBuilder_ == null ? apikeyMetadata_ : apikeyMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.defaultContext_ = defaultContextBuilder_ == null ? defaultContext_ : defaultContextBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.keepAlive_ = keepAlive_; to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Configs) { return mergeFrom((cloud.prefab.domain.Prefab.Configs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Configs other) { if (other == cloud.prefab.domain.Prefab.Configs.getDefaultInstance()) return this; if (configsBuilder_ == null) { if (!other.configs_.isEmpty()) { if (configs_.isEmpty()) { configs_ = other.configs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConfigsIsMutable(); configs_.addAll(other.configs_); } onChanged(); } } else { if (!other.configs_.isEmpty()) { if (configsBuilder_.isEmpty()) { configsBuilder_.dispose(); configsBuilder_ = null; configs_ = other.configs_; bitField0_ = (bitField0_ & ~0x00000001); configsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConfigsFieldBuilder() : null; } else { configsBuilder_.addAllMessages(other.configs_); } } } if (other.hasConfigServicePointer()) { mergeConfigServicePointer(other.getConfigServicePointer()); } if (other.hasApikeyMetadata()) { mergeApikeyMetadata(other.getApikeyMetadata()); } if (other.hasDefaultContext()) { mergeDefaultContext(other.getDefaultContext()); } if (other.hasKeepAlive()) { setKeepAlive(other.getKeepAlive()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.Config m = input.readMessage( cloud.prefab.domain.Prefab.Config.parser(), extensionRegistry); if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.add(m); } else { configsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getConfigServicePointerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getApikeyMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getDefaultContextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { keepAlive_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List configs_ = java.util.Collections.emptyList(); private void ensureConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { configs_ = new java.util.ArrayList(configs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Config, cloud.prefab.domain.Prefab.Config.Builder, cloud.prefab.domain.Prefab.ConfigOrBuilder> configsBuilder_; /** * repeated .prefab.Config configs = 1; */ public java.util.List getConfigsList() { if (configsBuilder_ == null) { return java.util.Collections.unmodifiableList(configs_); } else { return configsBuilder_.getMessageList(); } } /** * repeated .prefab.Config configs = 1; */ public int getConfigsCount() { if (configsBuilder_ == null) { return configs_.size(); } else { return configsBuilder_.getCount(); } } /** * repeated .prefab.Config configs = 1; */ public cloud.prefab.domain.Prefab.Config getConfigs(int index) { if (configsBuilder_ == null) { return configs_.get(index); } else { return configsBuilder_.getMessage(index); } } /** * repeated .prefab.Config configs = 1; */ public Builder setConfigs( int index, cloud.prefab.domain.Prefab.Config value) { if (configsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigsIsMutable(); configs_.set(index, value); onChanged(); } else { configsBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.Config configs = 1; */ public Builder setConfigs( int index, cloud.prefab.domain.Prefab.Config.Builder builderForValue) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.set(index, builderForValue.build()); onChanged(); } else { configsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Config configs = 1; */ public Builder addConfigs(cloud.prefab.domain.Prefab.Config value) { if (configsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigsIsMutable(); configs_.add(value); onChanged(); } else { configsBuilder_.addMessage(value); } return this; } /** * repeated .prefab.Config configs = 1; */ public Builder addConfigs( int index, cloud.prefab.domain.Prefab.Config value) { if (configsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigsIsMutable(); configs_.add(index, value); onChanged(); } else { configsBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.Config configs = 1; */ public Builder addConfigs( cloud.prefab.domain.Prefab.Config.Builder builderForValue) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.add(builderForValue.build()); onChanged(); } else { configsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.Config configs = 1; */ public Builder addConfigs( int index, cloud.prefab.domain.Prefab.Config.Builder builderForValue) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.add(index, builderForValue.build()); onChanged(); } else { configsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Config configs = 1; */ public Builder addAllConfigs( java.lang.Iterable 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 ((bitField0_ & 0x00000002) != 0); } /** * .prefab.ConfigServicePointer config_service_pointer = 2; * @return The configServicePointer. */ public cloud.prefab.domain.Prefab.ConfigServicePointer getConfigServicePointer() { if (configServicePointerBuilder_ == null) { return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_; } else { return configServicePointerBuilder_.getMessage(); } } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder setConfigServicePointer(cloud.prefab.domain.Prefab.ConfigServicePointer value) { if (configServicePointerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configServicePointer_ = value; } else { configServicePointerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder setConfigServicePointer( cloud.prefab.domain.Prefab.ConfigServicePointer.Builder builderForValue) { if (configServicePointerBuilder_ == null) { configServicePointer_ = builderForValue.build(); } else { configServicePointerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder mergeConfigServicePointer(cloud.prefab.domain.Prefab.ConfigServicePointer value) { if (configServicePointerBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && configServicePointer_ != null && configServicePointer_ != cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance()) { getConfigServicePointerBuilder().mergeFrom(value); } else { configServicePointer_ = value; } } else { configServicePointerBuilder_.mergeFrom(value); } if (configServicePointer_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public Builder clearConfigServicePointer() { bitField0_ = (bitField0_ & ~0x00000002); configServicePointer_ = null; if (configServicePointerBuilder_ != null) { configServicePointerBuilder_.dispose(); configServicePointerBuilder_ = null; } onChanged(); return this; } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public cloud.prefab.domain.Prefab.ConfigServicePointer.Builder getConfigServicePointerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConfigServicePointerFieldBuilder().getBuilder(); } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ public cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder getConfigServicePointerOrBuilder() { if (configServicePointerBuilder_ != null) { return configServicePointerBuilder_.getMessageOrBuilder(); } else { return configServicePointer_ == null ? cloud.prefab.domain.Prefab.ConfigServicePointer.getDefaultInstance() : configServicePointer_; } } /** * .prefab.ConfigServicePointer config_service_pointer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigServicePointer, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder, cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder> getConfigServicePointerFieldBuilder() { if (configServicePointerBuilder_ == null) { configServicePointerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigServicePointer, cloud.prefab.domain.Prefab.ConfigServicePointer.Builder, cloud.prefab.domain.Prefab.ConfigServicePointerOrBuilder>( getConfigServicePointer(), getParentForChildren(), isClean()); configServicePointer_ = null; } return configServicePointerBuilder_; } private cloud.prefab.domain.Prefab.ApiKeyMetadata apikeyMetadata_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder> apikeyMetadataBuilder_; /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; * @return Whether the apikeyMetadata field is set. */ public boolean hasApikeyMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; * @return The apikeyMetadata. */ public cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata() { if (apikeyMetadataBuilder_ == null) { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } else { return apikeyMetadataBuilder_.getMessage(); } } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ public Builder setApikeyMetadata(cloud.prefab.domain.Prefab.ApiKeyMetadata value) { if (apikeyMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } apikeyMetadata_ = value; } else { apikeyMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ public Builder setApikeyMetadata( cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder builderForValue) { if (apikeyMetadataBuilder_ == null) { apikeyMetadata_ = builderForValue.build(); } else { apikeyMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ public Builder mergeApikeyMetadata(cloud.prefab.domain.Prefab.ApiKeyMetadata value) { if (apikeyMetadataBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && apikeyMetadata_ != null && apikeyMetadata_ != cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance()) { getApikeyMetadataBuilder().mergeFrom(value); } else { apikeyMetadata_ = value; } } else { apikeyMetadataBuilder_.mergeFrom(value); } if (apikeyMetadata_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ public Builder clearApikeyMetadata() { bitField0_ = (bitField0_ & ~0x00000004); apikeyMetadata_ = null; if (apikeyMetadataBuilder_ != null) { apikeyMetadataBuilder_.dispose(); apikeyMetadataBuilder_ = null; } onChanged(); return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ public cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder getApikeyMetadataBuilder() { bitField0_ |= 0x00000004; onChanged(); return getApikeyMetadataFieldBuilder().getBuilder(); } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ public cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder() { if (apikeyMetadataBuilder_ != null) { return apikeyMetadataBuilder_.getMessageOrBuilder(); } else { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 3; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder> getApikeyMetadataFieldBuilder() { if (apikeyMetadataBuilder_ == null) { apikeyMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder>( getApikeyMetadata(), getParentForChildren(), isClean()); apikeyMetadata_ = null; } return apikeyMetadataBuilder_; } private cloud.prefab.domain.Prefab.ContextSet defaultContext_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> defaultContextBuilder_; /** * optional .prefab.ContextSet default_context = 4; * @return Whether the defaultContext field is set. */ public boolean hasDefaultContext() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .prefab.ContextSet default_context = 4; * @return The defaultContext. */ public cloud.prefab.domain.Prefab.ContextSet getDefaultContext() { if (defaultContextBuilder_ == null) { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } else { return defaultContextBuilder_.getMessage(); } } /** * optional .prefab.ContextSet default_context = 4; */ public Builder setDefaultContext(cloud.prefab.domain.Prefab.ContextSet value) { if (defaultContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultContext_ = value; } else { defaultContextBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .prefab.ContextSet default_context = 4; */ public Builder setDefaultContext( cloud.prefab.domain.Prefab.ContextSet.Builder builderForValue) { if (defaultContextBuilder_ == null) { defaultContext_ = builderForValue.build(); } else { defaultContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .prefab.ContextSet default_context = 4; */ public Builder mergeDefaultContext(cloud.prefab.domain.Prefab.ContextSet value) { if (defaultContextBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && defaultContext_ != null && defaultContext_ != cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) { getDefaultContextBuilder().mergeFrom(value); } else { defaultContext_ = value; } } else { defaultContextBuilder_.mergeFrom(value); } if (defaultContext_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * optional .prefab.ContextSet default_context = 4; */ public Builder clearDefaultContext() { bitField0_ = (bitField0_ & ~0x00000008); defaultContext_ = null; if (defaultContextBuilder_ != null) { defaultContextBuilder_.dispose(); defaultContextBuilder_ = null; } onChanged(); return this; } /** * optional .prefab.ContextSet default_context = 4; */ public cloud.prefab.domain.Prefab.ContextSet.Builder getDefaultContextBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDefaultContextFieldBuilder().getBuilder(); } /** * optional .prefab.ContextSet default_context = 4; */ public cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder() { if (defaultContextBuilder_ != null) { return defaultContextBuilder_.getMessageOrBuilder(); } else { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } } /** * optional .prefab.ContextSet default_context = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> getDefaultContextFieldBuilder() { if (defaultContextBuilder_ == null) { defaultContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder>( getDefaultContext(), getParentForChildren(), isClean()); defaultContext_ = null; } return defaultContextBuilder_; } private boolean keepAlive_ ; /** * optional bool keep_alive = 5; * @return Whether the keepAlive field is set. */ @java.lang.Override public boolean hasKeepAlive() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool keep_alive = 5; * @return The keepAlive. */ @java.lang.Override public boolean getKeepAlive() { return keepAlive_; } /** * optional bool keep_alive = 5; * @param value The keepAlive to set. * @return This builder for chaining. */ public Builder setKeepAlive(boolean value) { keepAlive_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional bool keep_alive = 5; * @return This builder for chaining. */ public Builder clearKeepAlive() { bitField0_ = (bitField0_ & ~0x00000010); keepAlive_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Configs) } // @@protoc_insertion_point(class_scope:prefab.Configs) private static final cloud.prefab.domain.Prefab.Configs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Configs(); } public static cloud.prefab.domain.Prefab.Configs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Configs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Configs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Config) com.google.protobuf.MessageOrBuilder { /** * int64 id = 1; * @return The id. */ long getId(); /** * int64 project_id = 2; * @return The projectId. */ long getProjectId(); /** * string key = 3; * @return The key. */ java.lang.String getKey(); /** * string key = 3; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .prefab.ChangedBy changed_by = 4; * @return Whether the changedBy field is set. */ boolean hasChangedBy(); /** * .prefab.ChangedBy changed_by = 4; * @return The changedBy. */ cloud.prefab.domain.Prefab.ChangedBy getChangedBy(); /** * .prefab.ChangedBy changed_by = 4; */ cloud.prefab.domain.Prefab.ChangedByOrBuilder getChangedByOrBuilder(); /** * repeated .prefab.ConfigRow rows = 5; */ java.util.List getRowsList(); /** * repeated .prefab.ConfigRow rows = 5; */ cloud.prefab.domain.Prefab.ConfigRow getRows(int index); /** * repeated .prefab.ConfigRow rows = 5; */ int getRowsCount(); /** * repeated .prefab.ConfigRow rows = 5; */ java.util.List 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 draft_id = 8; * @return Whether the draftId field is set. */ boolean hasDraftId(); /** * optional int64 draft_id = 8; * @return The draftId. */ long getDraftId(); /** * .prefab.Config.ValueType value_type = 9; * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** * .prefab.Config.ValueType value_type = 9; * @return The valueType. */ cloud.prefab.domain.Prefab.Config.ValueType getValueType(); /** *
     * default value of a boolean in proto3 is false
     * 
* * bool send_to_client_sdk = 10; * @return The sendToClientSdk. */ boolean getSendToClientSdk(); } /** * Protobuf type {@code prefab.Config} */ public static final class Config extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Config) ConfigOrBuilder { private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Config() { key_ = ""; rows_ = java.util.Collections.emptyList(); allowableValues_ = java.util.Collections.emptyList(); configType_ = 0; valueType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Config(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Config.class, cloud.prefab.domain.Prefab.Config.Builder.class); } /** * Protobuf enum {@code prefab.Config.ValueType} */ public enum ValueType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * proto null
       * 
* * NOT_SET_VALUE_TYPE = 0; */ NOT_SET_VALUE_TYPE(0), /** * INT = 1; */ INT(1), /** * STRING = 2; */ STRING(2), /** * BYTES = 3; */ BYTES(3), /** * DOUBLE = 4; */ DOUBLE(4), /** * BOOL = 5; */ BOOL(5), /** * LIMIT_DEFINITION = 7; */ LIMIT_DEFINITION(7), /** * LOG_LEVEL = 9; */ LOG_LEVEL(9), /** * STRING_LIST = 10; */ STRING_LIST(10), /** * INT_RANGE = 11; */ INT_RANGE(11), /** * DURATION = 12; */ DURATION(12), /** * JSON = 13; */ JSON(13), UNRECOGNIZED(-1), ; /** *
       * proto null
       * 
* * NOT_SET_VALUE_TYPE = 0; */ public static final int NOT_SET_VALUE_TYPE_VALUE = 0; /** * INT = 1; */ public static final int INT_VALUE = 1; /** * STRING = 2; */ public static final int STRING_VALUE = 2; /** * BYTES = 3; */ public static final int BYTES_VALUE = 3; /** * DOUBLE = 4; */ public static final int DOUBLE_VALUE = 4; /** * BOOL = 5; */ public static final int BOOL_VALUE = 5; /** * LIMIT_DEFINITION = 7; */ public static final int LIMIT_DEFINITION_VALUE = 7; /** * LOG_LEVEL = 9; */ public static final int LOG_LEVEL_VALUE = 9; /** * STRING_LIST = 10; */ public static final int STRING_LIST_VALUE = 10; /** * INT_RANGE = 11; */ public static final int INT_RANGE_VALUE = 11; /** * DURATION = 12; */ public static final int DURATION_VALUE = 12; /** * JSON = 13; */ public static final int JSON_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ValueType forNumber(int value) { switch (value) { case 0: return NOT_SET_VALUE_TYPE; case 1: return INT; case 2: return STRING; case 3: return BYTES; case 4: return DOUBLE; case 5: return BOOL; case 7: return LIMIT_DEFINITION; case 9: return LOG_LEVEL; case 10: return STRING_LIST; case 11: return INT_RANGE; case 12: return DURATION; case 13: return JSON; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ValueType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ValueType findValueByNumber(int number) { return ValueType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.Config.getDescriptor().getEnumTypes().get(0); } private static final ValueType[] VALUES = values(); public static ValueType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ValueType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.Config.ValueType) } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long id_ = 0L; /** * int64 id = 1; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int PROJECT_ID_FIELD_NUMBER = 2; private long projectId_ = 0L; /** * int64 project_id = 2; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } public static final int KEY_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 3; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * string key = 3; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHANGED_BY_FIELD_NUMBER = 4; private cloud.prefab.domain.Prefab.ChangedBy changedBy_; /** * .prefab.ChangedBy changed_by = 4; * @return Whether the changedBy field is set. */ @java.lang.Override public boolean hasChangedBy() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ChangedBy changed_by = 4; * @return The changedBy. */ @java.lang.Override public cloud.prefab.domain.Prefab.ChangedBy getChangedBy() { return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_; } /** * .prefab.ChangedBy changed_by = 4; */ @java.lang.Override public cloud.prefab.domain.Prefab.ChangedByOrBuilder getChangedByOrBuilder() { return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_; } public static final int ROWS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List rows_; /** * repeated .prefab.ConfigRow rows = 5; */ @java.lang.Override public java.util.List getRowsList() { return rows_; } /** * repeated .prefab.ConfigRow rows = 5; */ @java.lang.Override public java.util.List getRowsOrBuilderList() { return rows_; } /** * repeated .prefab.ConfigRow rows = 5; */ @java.lang.Override public int getRowsCount() { return rows_.size(); } /** * repeated .prefab.ConfigRow rows = 5; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigRow getRows(int index) { return rows_.get(index); } /** * repeated .prefab.ConfigRow rows = 5; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigRowOrBuilder getRowsOrBuilder( int index) { return rows_.get(index); } public static final int ALLOWABLE_VALUES_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List allowableValues_; /** * repeated .prefab.ConfigValue allowable_values = 6; */ @java.lang.Override public java.util.List getAllowableValuesList() { return allowableValues_; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ @java.lang.Override public java.util.List getAllowableValuesOrBuilderList() { return allowableValues_; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ @java.lang.Override public int getAllowableValuesCount() { return allowableValues_.size(); } /** * repeated .prefab.ConfigValue allowable_values = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getAllowableValues(int index) { return allowableValues_.get(index); } /** * repeated .prefab.ConfigValue allowable_values = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getAllowableValuesOrBuilder( int index) { return allowableValues_.get(index); } public static final int CONFIG_TYPE_FIELD_NUMBER = 7; private int configType_ = 0; /** * .prefab.ConfigType config_type = 7; * @return The enum numeric value on the wire for configType. */ @java.lang.Override public int getConfigTypeValue() { return configType_; } /** * .prefab.ConfigType config_type = 7; * @return The configType. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getConfigType() { cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(configType_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } public static final int DRAFT_ID_FIELD_NUMBER = 8; private long draftId_ = 0L; /** * optional int64 draft_id = 8; * @return Whether the draftId field is set. */ @java.lang.Override public boolean hasDraftId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 draft_id = 8; * @return The draftId. */ @java.lang.Override public long getDraftId() { return draftId_; } public static final int VALUE_TYPE_FIELD_NUMBER = 9; private int valueType_ = 0; /** * .prefab.Config.ValueType value_type = 9; * @return The enum numeric value on the wire for valueType. */ @java.lang.Override public int getValueTypeValue() { return valueType_; } /** * .prefab.Config.ValueType value_type = 9; * @return The valueType. */ @java.lang.Override public cloud.prefab.domain.Prefab.Config.ValueType getValueType() { cloud.prefab.domain.Prefab.Config.ValueType result = cloud.prefab.domain.Prefab.Config.ValueType.forNumber(valueType_); return result == null ? cloud.prefab.domain.Prefab.Config.ValueType.UNRECOGNIZED : result; } public static final int SEND_TO_CLIENT_SDK_FIELD_NUMBER = 10; private boolean sendToClientSdk_ = false; /** *
     * default value of a boolean in proto3 is false
     * 
* * bool send_to_client_sdk = 10; * @return The sendToClientSdk. */ @java.lang.Override public boolean getSendToClientSdk() { return sendToClientSdk_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0L) { output.writeInt64(1, id_); } if (projectId_ != 0L) { output.writeInt64(2, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getChangedBy()); } for (int i = 0; i < rows_.size(); i++) { output.writeMessage(5, rows_.get(i)); } for (int i = 0; i < allowableValues_.size(); i++) { output.writeMessage(6, allowableValues_.get(i)); } if (configType_ != cloud.prefab.domain.Prefab.ConfigType.NOT_SET_CONFIG_TYPE.getNumber()) { output.writeEnum(7, configType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(8, draftId_); } if (valueType_ != cloud.prefab.domain.Prefab.Config.ValueType.NOT_SET_VALUE_TYPE.getNumber()) { output.writeEnum(9, valueType_); } if (sendToClientSdk_ != false) { output.writeBool(10, sendToClientSdk_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, id_); } if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, projectId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChangedBy()); } for (int i = 0; i < rows_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, rows_.get(i)); } for (int i = 0; i < allowableValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, allowableValues_.get(i)); } if (configType_ != cloud.prefab.domain.Prefab.ConfigType.NOT_SET_CONFIG_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, configType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, draftId_); } if (valueType_ != cloud.prefab.domain.Prefab.Config.ValueType.NOT_SET_VALUE_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, valueType_); } if (sendToClientSdk_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, sendToClientSdk_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Config)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Config other = (cloud.prefab.domain.Prefab.Config) obj; if (getId() != other.getId()) return false; if (getProjectId() != other.getProjectId()) return false; if (!getKey() .equals(other.getKey())) return false; if (hasChangedBy() != other.hasChangedBy()) return false; if (hasChangedBy()) { if (!getChangedBy() .equals(other.getChangedBy())) return false; } if (!getRowsList() .equals(other.getRowsList())) return false; if (!getAllowableValuesList() .equals(other.getAllowableValuesList())) return false; if (configType_ != other.configType_) return false; if (hasDraftId() != other.hasDraftId()) return false; if (hasDraftId()) { if (getDraftId() != other.getDraftId()) return false; } if (valueType_ != other.valueType_) return false; if (getSendToClientSdk() != other.getSendToClientSdk()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasChangedBy()) { hash = (37 * hash) + CHANGED_BY_FIELD_NUMBER; hash = (53 * hash) + getChangedBy().hashCode(); } if (getRowsCount() > 0) { hash = (37 * hash) + ROWS_FIELD_NUMBER; hash = (53 * hash) + getRowsList().hashCode(); } if (getAllowableValuesCount() > 0) { hash = (37 * hash) + ALLOWABLE_VALUES_FIELD_NUMBER; hash = (53 * hash) + getAllowableValuesList().hashCode(); } hash = (37 * hash) + CONFIG_TYPE_FIELD_NUMBER; hash = (53 * hash) + configType_; if (hasDraftId()) { hash = (37 * hash) + DRAFT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDraftId()); } hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; hash = (53 * hash) + valueType_; hash = (37 * hash) + SEND_TO_CLIENT_SDK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSendToClientSdk()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Config parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Config parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Config parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Config parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Config parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Config parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Config parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Config parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Config parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Config parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Config parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Config prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Config} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Config) cloud.prefab.domain.Prefab.ConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Config.class, cloud.prefab.domain.Prefab.Config.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Config.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChangedByFieldBuilder(); getRowsFieldBuilder(); getAllowableValuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; projectId_ = 0L; key_ = ""; changedBy_ = null; if (changedByBuilder_ != null) { changedByBuilder_.dispose(); changedByBuilder_ = null; } if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); } else { rows_ = null; rowsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (allowableValuesBuilder_ == null) { allowableValues_ = java.util.Collections.emptyList(); } else { allowableValues_ = null; allowableValuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); configType_ = 0; draftId_ = 0L; valueType_ = 0; sendToClientSdk_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Config_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Config getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Config.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Config build() { cloud.prefab.domain.Prefab.Config result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Config buildPartial() { cloud.prefab.domain.Prefab.Config result = new cloud.prefab.domain.Prefab.Config(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.Config result) { if (rowsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); bitField0_ = (bitField0_ & ~0x00000010); } result.rows_ = rows_; } else { result.rows_ = rowsBuilder_.build(); } if (allowableValuesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { allowableValues_ = java.util.Collections.unmodifiableList(allowableValues_); bitField0_ = (bitField0_ & ~0x00000020); } result.allowableValues_ = allowableValues_; } else { result.allowableValues_ = allowableValuesBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.Config result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.key_ = key_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.changedBy_ = changedByBuilder_ == null ? changedBy_ : changedByBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.configType_ = configType_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.draftId_ = draftId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.valueType_ = valueType_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.sendToClientSdk_ = sendToClientSdk_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Config) { return mergeFrom((cloud.prefab.domain.Prefab.Config)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Config other) { if (other == cloud.prefab.domain.Prefab.Config.getDefaultInstance()) return this; if (other.getId() != 0L) { setId(other.getId()); } if (other.getProjectId() != 0L) { setProjectId(other.getProjectId()); } if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasChangedBy()) { mergeChangedBy(other.getChangedBy()); } if (rowsBuilder_ == null) { if (!other.rows_.isEmpty()) { if (rows_.isEmpty()) { rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRowsIsMutable(); rows_.addAll(other.rows_); } onChanged(); } } else { if (!other.rows_.isEmpty()) { if (rowsBuilder_.isEmpty()) { rowsBuilder_.dispose(); rowsBuilder_ = null; rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000010); rowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRowsFieldBuilder() : null; } else { rowsBuilder_.addAllMessages(other.rows_); } } } if (allowableValuesBuilder_ == null) { if (!other.allowableValues_.isEmpty()) { if (allowableValues_.isEmpty()) { allowableValues_ = other.allowableValues_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAllowableValuesIsMutable(); allowableValues_.addAll(other.allowableValues_); } onChanged(); } } else { if (!other.allowableValues_.isEmpty()) { if (allowableValuesBuilder_.isEmpty()) { allowableValuesBuilder_.dispose(); allowableValuesBuilder_ = null; allowableValues_ = other.allowableValues_; bitField0_ = (bitField0_ & ~0x00000020); allowableValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllowableValuesFieldBuilder() : null; } else { allowableValuesBuilder_.addAllMessages(other.allowableValues_); } } } if (other.configType_ != 0) { setConfigTypeValue(other.getConfigTypeValue()); } if (other.hasDraftId()) { setDraftId(other.getDraftId()); } if (other.valueType_ != 0) { setValueTypeValue(other.getValueTypeValue()); } if (other.getSendToClientSdk() != false) { setSendToClientSdk(other.getSendToClientSdk()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { projectId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getChangedByFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { cloud.prefab.domain.Prefab.ConfigRow m = input.readMessage( cloud.prefab.domain.Prefab.ConfigRow.parser(), extensionRegistry); if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(m); } else { rowsBuilder_.addMessage(m); } break; } // case 42 case 50: { cloud.prefab.domain.Prefab.ConfigValue m = input.readMessage( cloud.prefab.domain.Prefab.ConfigValue.parser(), extensionRegistry); if (allowableValuesBuilder_ == null) { ensureAllowableValuesIsMutable(); allowableValues_.add(m); } else { allowableValuesBuilder_.addMessage(m); } break; } // case 50 case 56: { configType_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { draftId_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { valueType_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { sendToClientSdk_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long id_ ; /** * int64 id = 1; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** * int64 id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private long projectId_ ; /** * int64 project_id = 2; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 2; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 project_id = 2; * @return This builder for chaining. */ public Builder clearProjectId() { bitField0_ = (bitField0_ & ~0x00000002); projectId_ = 0L; onChanged(); return this; } private java.lang.Object key_ = ""; /** * string key = 3; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 3; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 3; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string key = 3; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string key = 3; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private cloud.prefab.domain.Prefab.ChangedBy changedBy_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ChangedBy, cloud.prefab.domain.Prefab.ChangedBy.Builder, cloud.prefab.domain.Prefab.ChangedByOrBuilder> changedByBuilder_; /** * .prefab.ChangedBy changed_by = 4; * @return Whether the changedBy field is set. */ public boolean hasChangedBy() { return ((bitField0_ & 0x00000008) != 0); } /** * .prefab.ChangedBy changed_by = 4; * @return The changedBy. */ public cloud.prefab.domain.Prefab.ChangedBy getChangedBy() { if (changedByBuilder_ == null) { return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_; } else { return changedByBuilder_.getMessage(); } } /** * .prefab.ChangedBy changed_by = 4; */ public Builder setChangedBy(cloud.prefab.domain.Prefab.ChangedBy value) { if (changedByBuilder_ == null) { if (value == null) { throw new NullPointerException(); } changedBy_ = value; } else { changedByBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .prefab.ChangedBy changed_by = 4; */ public Builder setChangedBy( cloud.prefab.domain.Prefab.ChangedBy.Builder builderForValue) { if (changedByBuilder_ == null) { changedBy_ = builderForValue.build(); } else { changedByBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .prefab.ChangedBy changed_by = 4; */ public Builder mergeChangedBy(cloud.prefab.domain.Prefab.ChangedBy value) { if (changedByBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && changedBy_ != null && changedBy_ != cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance()) { getChangedByBuilder().mergeFrom(value); } else { changedBy_ = value; } } else { changedByBuilder_.mergeFrom(value); } if (changedBy_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .prefab.ChangedBy changed_by = 4; */ public Builder clearChangedBy() { bitField0_ = (bitField0_ & ~0x00000008); changedBy_ = null; if (changedByBuilder_ != null) { changedByBuilder_.dispose(); changedByBuilder_ = null; } onChanged(); return this; } /** * .prefab.ChangedBy changed_by = 4; */ public cloud.prefab.domain.Prefab.ChangedBy.Builder getChangedByBuilder() { bitField0_ |= 0x00000008; onChanged(); return getChangedByFieldBuilder().getBuilder(); } /** * .prefab.ChangedBy changed_by = 4; */ public cloud.prefab.domain.Prefab.ChangedByOrBuilder getChangedByOrBuilder() { if (changedByBuilder_ != null) { return changedByBuilder_.getMessageOrBuilder(); } else { return changedBy_ == null ? cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance() : changedBy_; } } /** * .prefab.ChangedBy changed_by = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ChangedBy, cloud.prefab.domain.Prefab.ChangedBy.Builder, cloud.prefab.domain.Prefab.ChangedByOrBuilder> getChangedByFieldBuilder() { if (changedByBuilder_ == null) { changedByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ChangedBy, cloud.prefab.domain.Prefab.ChangedBy.Builder, cloud.prefab.domain.Prefab.ChangedByOrBuilder>( getChangedBy(), getParentForChildren(), isClean()); changedBy_ = null; } return changedByBuilder_; } private java.util.List rows_ = java.util.Collections.emptyList(); private void ensureRowsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { rows_ = new java.util.ArrayList(rows_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigRow, cloud.prefab.domain.Prefab.ConfigRow.Builder, cloud.prefab.domain.Prefab.ConfigRowOrBuilder> rowsBuilder_; /** * repeated .prefab.ConfigRow rows = 5; */ public java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { return rowsBuilder_.getMessageList(); } } /** * repeated .prefab.ConfigRow rows = 5; */ public int getRowsCount() { if (rowsBuilder_ == null) { return rows_.size(); } else { return rowsBuilder_.getCount(); } } /** * repeated .prefab.ConfigRow rows = 5; */ public cloud.prefab.domain.Prefab.ConfigRow getRows(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessage(index); } } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder setRows( int index, cloud.prefab.domain.Prefab.ConfigRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.set(index, value); onChanged(); } else { rowsBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder setRows( int index, cloud.prefab.domain.Prefab.ConfigRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder addRows(cloud.prefab.domain.Prefab.ConfigRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(value); onChanged(); } else { rowsBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder addRows( int index, cloud.prefab.domain.Prefab.ConfigRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(index, value); onChanged(); } else { rowsBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder addRows( cloud.prefab.domain.Prefab.ConfigRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder addRows( int index, cloud.prefab.domain.Prefab.ConfigRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder addAllRows( java.lang.Iterable values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder clearRows() { if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { rowsBuilder_.clear(); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public Builder removeRows(int index) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.remove(index); onChanged(); } else { rowsBuilder_.remove(index); } return this; } /** * repeated .prefab.ConfigRow rows = 5; */ public cloud.prefab.domain.Prefab.ConfigRow.Builder getRowsBuilder( int index) { return getRowsFieldBuilder().getBuilder(index); } /** * repeated .prefab.ConfigRow rows = 5; */ public cloud.prefab.domain.Prefab.ConfigRowOrBuilder getRowsOrBuilder( int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.ConfigRow rows = 5; */ public java.util.List getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rows_); } } /** * repeated .prefab.ConfigRow rows = 5; */ public cloud.prefab.domain.Prefab.ConfigRow.Builder addRowsBuilder() { return getRowsFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance()); } /** * repeated .prefab.ConfigRow rows = 5; */ public cloud.prefab.domain.Prefab.ConfigRow.Builder addRowsBuilder( int index) { return getRowsFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance()); } /** * repeated .prefab.ConfigRow rows = 5; */ public java.util.List getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigRow, cloud.prefab.domain.Prefab.ConfigRow.Builder, cloud.prefab.domain.Prefab.ConfigRowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigRow, cloud.prefab.domain.Prefab.ConfigRow.Builder, cloud.prefab.domain.Prefab.ConfigRowOrBuilder>( rows_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } private java.util.List allowableValues_ = java.util.Collections.emptyList(); private void ensureAllowableValuesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { allowableValues_ = new java.util.ArrayList(allowableValues_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> allowableValuesBuilder_; /** * repeated .prefab.ConfigValue allowable_values = 6; */ public java.util.List getAllowableValuesList() { if (allowableValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowableValues_); } else { return allowableValuesBuilder_.getMessageList(); } } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public int getAllowableValuesCount() { if (allowableValuesBuilder_ == null) { return allowableValues_.size(); } else { return allowableValuesBuilder_.getCount(); } } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public cloud.prefab.domain.Prefab.ConfigValue getAllowableValues(int index) { if (allowableValuesBuilder_ == null) { return allowableValues_.get(index); } else { return allowableValuesBuilder_.getMessage(index); } } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder setAllowableValues( int index, cloud.prefab.domain.Prefab.ConfigValue value) { if (allowableValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowableValuesIsMutable(); allowableValues_.set(index, value); onChanged(); } else { allowableValuesBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder setAllowableValues( int index, cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (allowableValuesBuilder_ == null) { ensureAllowableValuesIsMutable(); allowableValues_.set(index, builderForValue.build()); onChanged(); } else { allowableValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder addAllowableValues(cloud.prefab.domain.Prefab.ConfigValue value) { if (allowableValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowableValuesIsMutable(); allowableValues_.add(value); onChanged(); } else { allowableValuesBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder addAllowableValues( int index, cloud.prefab.domain.Prefab.ConfigValue value) { if (allowableValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowableValuesIsMutable(); allowableValues_.add(index, value); onChanged(); } else { allowableValuesBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder addAllowableValues( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (allowableValuesBuilder_ == null) { ensureAllowableValuesIsMutable(); allowableValues_.add(builderForValue.build()); onChanged(); } else { allowableValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder addAllowableValues( int index, cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (allowableValuesBuilder_ == null) { ensureAllowableValuesIsMutable(); allowableValues_.add(index, builderForValue.build()); onChanged(); } else { allowableValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder addAllAllowableValues( java.lang.Iterable values) { if (allowableValuesBuilder_ == null) { ensureAllowableValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, allowableValues_); onChanged(); } else { allowableValuesBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder clearAllowableValues() { if (allowableValuesBuilder_ == null) { allowableValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { allowableValuesBuilder_.clear(); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public Builder removeAllowableValues(int index) { if (allowableValuesBuilder_ == null) { ensureAllowableValuesIsMutable(); allowableValues_.remove(index); onChanged(); } else { allowableValuesBuilder_.remove(index); } return this; } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getAllowableValuesBuilder( int index) { return getAllowableValuesFieldBuilder().getBuilder(index); } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getAllowableValuesOrBuilder( int index) { if (allowableValuesBuilder_ == null) { return allowableValues_.get(index); } else { return allowableValuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public java.util.List getAllowableValuesOrBuilderList() { if (allowableValuesBuilder_ != null) { return allowableValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allowableValues_); } } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder addAllowableValuesBuilder() { return getAllowableValuesFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()); } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder addAllowableValuesBuilder( int index) { return getAllowableValuesFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()); } /** * repeated .prefab.ConfigValue allowable_values = 6; */ public java.util.List getAllowableValuesBuilderList() { return getAllowableValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> getAllowableValuesFieldBuilder() { if (allowableValuesBuilder_ == null) { allowableValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>( allowableValues_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); allowableValues_ = null; } return allowableValuesBuilder_; } private int configType_ = 0; /** * .prefab.ConfigType config_type = 7; * @return The enum numeric value on the wire for configType. */ @java.lang.Override public int getConfigTypeValue() { return configType_; } /** * .prefab.ConfigType config_type = 7; * @param value The enum numeric value on the wire for configType to set. * @return This builder for chaining. */ public Builder setConfigTypeValue(int value) { configType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * .prefab.ConfigType config_type = 7; * @return The configType. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getConfigType() { cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(configType_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } /** * .prefab.ConfigType config_type = 7; * @param value The configType to set. * @return This builder for chaining. */ public Builder setConfigType(cloud.prefab.domain.Prefab.ConfigType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; configType_ = value.getNumber(); onChanged(); return this; } /** * .prefab.ConfigType config_type = 7; * @return This builder for chaining. */ public Builder clearConfigType() { bitField0_ = (bitField0_ & ~0x00000040); configType_ = 0; onChanged(); return this; } private long draftId_ ; /** * optional int64 draft_id = 8; * @return Whether the draftId field is set. */ @java.lang.Override public boolean hasDraftId() { return ((bitField0_ & 0x00000080) != 0); } /** * optional int64 draft_id = 8; * @return The draftId. */ @java.lang.Override public long getDraftId() { return draftId_; } /** * optional int64 draft_id = 8; * @param value The draftId to set. * @return This builder for chaining. */ public Builder setDraftId(long value) { draftId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * optional int64 draft_id = 8; * @return This builder for chaining. */ public Builder clearDraftId() { bitField0_ = (bitField0_ & ~0x00000080); draftId_ = 0L; onChanged(); return this; } private int valueType_ = 0; /** * .prefab.Config.ValueType value_type = 9; * @return The enum numeric value on the wire for valueType. */ @java.lang.Override public int getValueTypeValue() { return valueType_; } /** * .prefab.Config.ValueType value_type = 9; * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { valueType_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * .prefab.Config.ValueType value_type = 9; * @return The valueType. */ @java.lang.Override public cloud.prefab.domain.Prefab.Config.ValueType getValueType() { cloud.prefab.domain.Prefab.Config.ValueType result = cloud.prefab.domain.Prefab.Config.ValueType.forNumber(valueType_); return result == null ? cloud.prefab.domain.Prefab.Config.ValueType.UNRECOGNIZED : result; } /** * .prefab.Config.ValueType value_type = 9; * @param value The valueType to set. * @return This builder for chaining. */ public Builder setValueType(cloud.prefab.domain.Prefab.Config.ValueType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; valueType_ = value.getNumber(); onChanged(); return this; } /** * .prefab.Config.ValueType value_type = 9; * @return This builder for chaining. */ public Builder clearValueType() { bitField0_ = (bitField0_ & ~0x00000100); valueType_ = 0; onChanged(); return this; } private boolean sendToClientSdk_ ; /** *
       * default value of a boolean in proto3 is false
       * 
* * bool send_to_client_sdk = 10; * @return The sendToClientSdk. */ @java.lang.Override public boolean getSendToClientSdk() { return sendToClientSdk_; } /** *
       * default value of a boolean in proto3 is false
       * 
* * bool send_to_client_sdk = 10; * @param value The sendToClientSdk to set. * @return This builder for chaining. */ public Builder setSendToClientSdk(boolean value) { sendToClientSdk_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * default value of a boolean in proto3 is false
       * 
* * bool send_to_client_sdk = 10; * @return This builder for chaining. */ public Builder clearSendToClientSdk() { bitField0_ = (bitField0_ & ~0x00000200); sendToClientSdk_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Config) } // @@protoc_insertion_point(class_scope:prefab.Config) private static final cloud.prefab.domain.Prefab.Config DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Config(); } public static cloud.prefab.domain.Prefab.Config getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Config parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangedByOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ChangedBy) com.google.protobuf.MessageOrBuilder { /** * int64 user_id = 1; * @return The userId. */ long getUserId(); /** * string email = 2; * @return The email. */ java.lang.String getEmail(); /** * string email = 2; * @return The bytes for email. */ com.google.protobuf.ByteString getEmailBytes(); /** * string api_key_id = 3; * @return The apiKeyId. */ java.lang.String getApiKeyId(); /** * string api_key_id = 3; * @return The bytes for apiKeyId. */ com.google.protobuf.ByteString getApiKeyIdBytes(); } /** * Protobuf type {@code prefab.ChangedBy} */ public static final class ChangedBy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ChangedBy) ChangedByOrBuilder { private static final long serialVersionUID = 0L; // Use ChangedBy.newBuilder() to construct. private ChangedBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangedBy() { email_ = ""; apiKeyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChangedBy(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ChangedBy.class, cloud.prefab.domain.Prefab.ChangedBy.Builder.class); } public static final int USER_ID_FIELD_NUMBER = 1; private long userId_ = 0L; /** * int64 user_id = 1; * @return The userId. */ @java.lang.Override public long getUserId() { return userId_; } public static final int EMAIL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** * string email = 2; * @return The email. */ @java.lang.Override public java.lang.String getEmail() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** * string email = 2; * @return The bytes for email. */ @java.lang.Override public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int API_KEY_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object apiKeyId_ = ""; /** * string api_key_id = 3; * @return The apiKeyId. */ @java.lang.Override public java.lang.String getApiKeyId() { java.lang.Object ref = apiKeyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKeyId_ = s; return s; } } /** * string api_key_id = 3; * @return The bytes for apiKeyId. */ @java.lang.Override public com.google.protobuf.ByteString getApiKeyIdBytes() { java.lang.Object ref = apiKeyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); apiKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (userId_ != 0L) { output.writeInt64(1, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, apiKeyId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (userId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, userId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKeyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, apiKeyId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ChangedBy)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ChangedBy other = (cloud.prefab.domain.Prefab.ChangedBy) obj; if (getUserId() != other.getUserId()) return false; if (!getEmail() .equals(other.getEmail())) return false; if (!getApiKeyId() .equals(other.getApiKeyId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUserId()); hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + API_KEY_ID_FIELD_NUMBER; hash = (53 * hash) + getApiKeyId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ChangedBy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ChangedBy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ChangedBy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ChangedBy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ChangedBy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ChangedBy) cloud.prefab.domain.Prefab.ChangedByOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ChangedBy.class, cloud.prefab.domain.Prefab.ChangedBy.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ChangedBy.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; userId_ = 0L; email_ = ""; apiKeyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ChangedBy_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ChangedBy getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ChangedBy build() { cloud.prefab.domain.Prefab.ChangedBy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ChangedBy buildPartial() { cloud.prefab.domain.Prefab.ChangedBy result = new cloud.prefab.domain.Prefab.ChangedBy(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ChangedBy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.userId_ = userId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.email_ = email_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.apiKeyId_ = apiKeyId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ChangedBy) { return mergeFrom((cloud.prefab.domain.Prefab.ChangedBy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ChangedBy other) { if (other == cloud.prefab.domain.Prefab.ChangedBy.getDefaultInstance()) return this; if (other.getUserId() != 0L) { setUserId(other.getUserId()); } if (!other.getEmail().isEmpty()) { email_ = other.email_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getApiKeyId().isEmpty()) { apiKeyId_ = other.apiKeyId_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { userId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { email_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { apiKeyId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long userId_ ; /** * int64 user_id = 1; * @return The userId. */ @java.lang.Override public long getUserId() { return userId_; } /** * int64 user_id = 1; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId(long value) { userId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 user_id = 1; * @return This builder for chaining. */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = 0L; onChanged(); return this; } private java.lang.Object email_ = ""; /** * string email = 2; * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } else { return (java.lang.String) ref; } } /** * string email = 2; * @return The bytes for email. */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string email = 2; * @param value The email to set. * @return This builder for chaining. */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string email = 2; * @return This builder for chaining. */ public Builder clearEmail() { email_ = getDefaultInstance().getEmail(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string email = 2; * @param value The bytes for email to set. * @return This builder for chaining. */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object apiKeyId_ = ""; /** * string api_key_id = 3; * @return The apiKeyId. */ public java.lang.String getApiKeyId() { java.lang.Object ref = apiKeyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKeyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string api_key_id = 3; * @return The bytes for apiKeyId. */ public com.google.protobuf.ByteString getApiKeyIdBytes() { java.lang.Object ref = apiKeyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); apiKeyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string api_key_id = 3; * @param value The apiKeyId to set. * @return This builder for chaining. */ public Builder setApiKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } apiKeyId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string api_key_id = 3; * @return This builder for chaining. */ public Builder clearApiKeyId() { apiKeyId_ = getDefaultInstance().getApiKeyId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string api_key_id = 3; * @param value The bytes for apiKeyId to set. * @return This builder for chaining. */ public Builder setApiKeyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiKeyId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ChangedBy) } // @@protoc_insertion_point(class_scope:prefab.ChangedBy) private static final cloud.prefab.domain.Prefab.ChangedBy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ChangedBy(); } public static cloud.prefab.domain.Prefab.ChangedBy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChangedBy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ChangedBy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigRowOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigRow) com.google.protobuf.MessageOrBuilder { /** *
     * one row per project_env_id
     * 
* * optional int64 project_env_id = 1; * @return Whether the projectEnvId field is set. */ boolean hasProjectEnvId(); /** *
     * one row per project_env_id
     * 
* * optional int64 project_env_id = 1; * @return The projectEnvId. */ long getProjectEnvId(); /** * repeated .prefab.ConditionalValue values = 2; */ java.util.List getValuesList(); /** * repeated .prefab.ConditionalValue values = 2; */ cloud.prefab.domain.Prefab.ConditionalValue getValues(int index); /** * repeated .prefab.ConditionalValue values = 2; */ int getValuesCount(); /** * repeated .prefab.ConditionalValue values = 2; */ java.util.List getValuesOrBuilderList(); /** * repeated .prefab.ConditionalValue values = 2; */ cloud.prefab.domain.Prefab.ConditionalValueOrBuilder getValuesOrBuilder( int index); /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ int getPropertiesCount(); /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ boolean containsProperties( java.lang.String key); /** * Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated java.util.Map getProperties(); /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ java.util.Map getPropertiesMap(); /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ /* nullable */ cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ConfigValue defaultValue); /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrThrow( java.lang.String key); } /** * Protobuf type {@code prefab.ConfigRow} */ public static final class ConfigRow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigRow) ConfigRowOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigRow.newBuilder() to construct. private ConfigRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigRow() { values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigRow(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigRow.class, cloud.prefab.domain.Prefab.ConfigRow.Builder.class); } private int bitField0_; public static final int PROJECT_ENV_ID_FIELD_NUMBER = 1; private long projectEnvId_ = 0L; /** *
     * one row per project_env_id
     * 
* * optional int64 project_env_id = 1; * @return Whether the projectEnvId field is set. */ @java.lang.Override public boolean hasProjectEnvId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * one row per project_env_id
     * 
* * optional int64 project_env_id = 1; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } public static final int VALUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List values_; /** * repeated .prefab.ConditionalValue values = 2; */ @java.lang.Override public java.util.List getValuesList() { return values_; } /** * repeated .prefab.ConditionalValue values = 2; */ @java.lang.Override public java.util.List getValuesOrBuilderList() { return values_; } /** * repeated .prefab.ConditionalValue values = 2; */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** * repeated .prefab.ConditionalValue values = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValue getValues(int index) { return values_.get(index); } /** * repeated .prefab.ConditionalValue values = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValueOrBuilder getValuesOrBuilder( int index) { return values_.get(index); } public static final int PROPERTIES_FIELD_NUMBER = 3; private static final class PropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_PropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> properties_; private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public boolean containsProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } /** * Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public /* nullable */ cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * can store "activated"
     * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, projectEnvId_); } for (int i = 0; i < values_.size(); i++) { output.writeMessage(2, values_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectEnvId_); } for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, values_.get(i)); } for (java.util.Map.Entry entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, properties__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigRow)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigRow other = (cloud.prefab.domain.Prefab.ConfigRow) obj; if (hasProjectEnvId() != other.hasProjectEnvId()) return false; if (hasProjectEnvId()) { if (getProjectEnvId() != other.getProjectEnvId()) return false; } if (!getValuesList() .equals(other.getValuesList())) return false; if (!internalGetProperties().equals( other.internalGetProperties())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasProjectEnvId()) { hash = (37 * hash) + PROJECT_ENV_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectEnvId()); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigRow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigRow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigRow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ConfigRow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ConfigRow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigRow) cloud.prefab.domain.Prefab.ConfigRowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigRow.class, cloud.prefab.domain.Prefab.ConfigRow.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigRow.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; projectEnvId_ = 0L; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableProperties().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigRow_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigRow getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigRow build() { cloud.prefab.domain.Prefab.ConfigRow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigRow buildPartial() { cloud.prefab.domain.Prefab.ConfigRow result = new cloud.prefab.domain.Prefab.ConfigRow(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ConfigRow result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000002); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigRow result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectEnvId_ = projectEnvId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConfigRow) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigRow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigRow other) { if (other == cloud.prefab.domain.Prefab.ConfigRow.getDefaultInstance()) return this; if (other.hasProjectEnvId()) { setProjectEnvId(other.getProjectEnvId()); } if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } } } internalGetMutableProperties().mergeFrom( other.internalGetProperties()); bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectEnvId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { cloud.prefab.domain.Prefab.ConditionalValue m = input.readMessage( cloud.prefab.domain.Prefab.ConditionalValue.parser(), extensionRegistry); if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(m); } else { valuesBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.protobuf.MapEntry properties__ = input.readMessage( PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableProperties().getMutableMap().put( properties__.getKey(), properties__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long projectEnvId_ ; /** *
       * one row per project_env_id
       * 
* * optional int64 project_env_id = 1; * @return Whether the projectEnvId field is set. */ @java.lang.Override public boolean hasProjectEnvId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * one row per project_env_id
       * 
* * optional int64 project_env_id = 1; * @return The projectEnvId. */ @java.lang.Override public long getProjectEnvId() { return projectEnvId_; } /** *
       * one row per project_env_id
       * 
* * optional int64 project_env_id = 1; * @param value The projectEnvId to set. * @return This builder for chaining. */ public Builder setProjectEnvId(long value) { projectEnvId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * one row per project_env_id
       * 
* * optional int64 project_env_id = 1; * @return This builder for chaining. */ public Builder clearProjectEnvId() { bitField0_ = (bitField0_ & ~0x00000001); projectEnvId_ = 0L; onChanged(); return this; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConditionalValue, cloud.prefab.domain.Prefab.ConditionalValue.Builder, cloud.prefab.domain.Prefab.ConditionalValueOrBuilder> valuesBuilder_; /** * repeated .prefab.ConditionalValue values = 2; */ public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** * repeated .prefab.ConditionalValue values = 2; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * repeated .prefab.ConditionalValue values = 2; */ public cloud.prefab.domain.Prefab.ConditionalValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder setValues( int index, cloud.prefab.domain.Prefab.ConditionalValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder setValues( int index, cloud.prefab.domain.Prefab.ConditionalValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder addValues(cloud.prefab.domain.Prefab.ConditionalValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder addValues( int index, cloud.prefab.domain.Prefab.ConditionalValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder addValues( cloud.prefab.domain.Prefab.ConditionalValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder addValues( int index, cloud.prefab.domain.Prefab.ConditionalValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConditionalValue values = 2; */ public Builder addAllValues( java.lang.Iterable 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() { if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } bitField0_ |= 0x00000004; onChanged(); return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public boolean containsProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } /** * Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public /* nullable */ cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearProperties() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableProperties().getMutableMap() .clear(); return this; } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ public Builder removeProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableProperties().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableProperties() { bitField0_ |= 0x00000004; return internalGetMutableProperties().getMutableMap(); } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ public Builder putProperties( java.lang.String key, cloud.prefab.domain.Prefab.ConfigValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableProperties().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
       * can store "activated"
       * 
* * map<string, .prefab.ConfigValue> properties = 3; */ public Builder putAllProperties( java.util.Map values) { internalGetMutableProperties().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ConfigRow) } // @@protoc_insertion_point(class_scope:prefab.ConfigRow) private static final cloud.prefab.domain.Prefab.ConfigRow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigRow(); } public static cloud.prefab.domain.Prefab.ConfigRow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigRow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigRow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConditionalValueOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConditionalValue) com.google.protobuf.MessageOrBuilder { /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ java.util.List getCriteriaList(); /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ cloud.prefab.domain.Prefab.Criterion getCriteria(int index); /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ int getCriteriaCount(); /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ java.util.List getCriteriaOrBuilderList(); /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ cloud.prefab.domain.Prefab.CriterionOrBuilder getCriteriaOrBuilder( int index); /** * .prefab.ConfigValue value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .prefab.ConfigValue value = 2; * @return The value. */ cloud.prefab.domain.Prefab.ConfigValue getValue(); /** * .prefab.ConfigValue value = 2; */ cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code prefab.ConditionalValue} */ public static final class ConditionalValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConditionalValue) ConditionalValueOrBuilder { private static final long serialVersionUID = 0L; // Use ConditionalValue.newBuilder() to construct. private ConditionalValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConditionalValue() { criteria_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConditionalValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConditionalValue.class, cloud.prefab.domain.Prefab.ConditionalValue.Builder.class); } private int bitField0_; public static final int CRITERIA_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List criteria_; /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ @java.lang.Override public java.util.List getCriteriaList() { return criteria_; } /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ @java.lang.Override public java.util.List getCriteriaOrBuilderList() { return criteria_; } /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ @java.lang.Override public int getCriteriaCount() { return criteria_.size(); } /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.Criterion getCriteria(int index) { return criteria_.get(index); } /** *
     * if all criteria match, then the rule is matched and value is returned
     * 
* * repeated .prefab.Criterion criteria = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.CriterionOrBuilder getCriteriaOrBuilder( int index) { return criteria_.get(index); } public static final int VALUE_FIELD_NUMBER = 2; private cloud.prefab.domain.Prefab.ConfigValue value_; /** * .prefab.ConfigValue value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ConfigValue value = 2; * @return The value. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getValue() { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } /** * .prefab.ConfigValue value = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < criteria_.size(); i++) { output.writeMessage(1, criteria_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < criteria_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, criteria_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConditionalValue)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConditionalValue other = (cloud.prefab.domain.Prefab.ConditionalValue) obj; if (!getCriteriaList() .equals(other.getCriteriaList())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCriteriaCount() > 0) { hash = (37 * hash) + CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getCriteriaList().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConditionalValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConditionalValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConditionalValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ConditionalValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.ConditionalValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConditionalValue) cloud.prefab.domain.Prefab.ConditionalValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConditionalValue.class, cloud.prefab.domain.Prefab.ConditionalValue.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConditionalValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCriteriaFieldBuilder(); getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (criteriaBuilder_ == null) { criteria_ = java.util.Collections.emptyList(); } else { criteria_ = null; criteriaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConditionalValue_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValue getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConditionalValue.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValue build() { cloud.prefab.domain.Prefab.ConditionalValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValue buildPartial() { cloud.prefab.domain.Prefab.ConditionalValue result = new cloud.prefab.domain.Prefab.ConditionalValue(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ConditionalValue result) { if (criteriaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { criteria_ = java.util.Collections.unmodifiableList(criteria_); bitField0_ = (bitField0_ & ~0x00000001); } result.criteria_ = criteria_; } else { result.criteria_ = criteriaBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ConditionalValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConditionalValue) { return mergeFrom((cloud.prefab.domain.Prefab.ConditionalValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConditionalValue other) { if (other == cloud.prefab.domain.Prefab.ConditionalValue.getDefaultInstance()) return this; if (criteriaBuilder_ == null) { if (!other.criteria_.isEmpty()) { if (criteria_.isEmpty()) { criteria_ = other.criteria_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCriteriaIsMutable(); criteria_.addAll(other.criteria_); } onChanged(); } } else { if (!other.criteria_.isEmpty()) { if (criteriaBuilder_.isEmpty()) { criteriaBuilder_.dispose(); criteriaBuilder_ = null; criteria_ = other.criteria_; bitField0_ = (bitField0_ & ~0x00000001); criteriaBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCriteriaFieldBuilder() : null; } else { criteriaBuilder_.addAllMessages(other.criteria_); } } } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.Criterion m = input.readMessage( cloud.prefab.domain.Prefab.Criterion.parser(), extensionRegistry); if (criteriaBuilder_ == null) { ensureCriteriaIsMutable(); criteria_.add(m); } else { criteriaBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List criteria_ = java.util.Collections.emptyList(); private void ensureCriteriaIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { criteria_ = new java.util.ArrayList(criteria_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Criterion, cloud.prefab.domain.Prefab.Criterion.Builder, cloud.prefab.domain.Prefab.CriterionOrBuilder> criteriaBuilder_; /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public java.util.List getCriteriaList() { if (criteriaBuilder_ == null) { return java.util.Collections.unmodifiableList(criteria_); } else { return criteriaBuilder_.getMessageList(); } } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public int getCriteriaCount() { if (criteriaBuilder_ == null) { return criteria_.size(); } else { return criteriaBuilder_.getCount(); } } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public cloud.prefab.domain.Prefab.Criterion getCriteria(int index) { if (criteriaBuilder_ == null) { return criteria_.get(index); } else { return criteriaBuilder_.getMessage(index); } } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder setCriteria( int index, cloud.prefab.domain.Prefab.Criterion value) { if (criteriaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCriteriaIsMutable(); criteria_.set(index, value); onChanged(); } else { criteriaBuilder_.setMessage(index, value); } return this; } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder setCriteria( int index, cloud.prefab.domain.Prefab.Criterion.Builder builderForValue) { if (criteriaBuilder_ == null) { ensureCriteriaIsMutable(); criteria_.set(index, builderForValue.build()); onChanged(); } else { criteriaBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder addCriteria(cloud.prefab.domain.Prefab.Criterion value) { if (criteriaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCriteriaIsMutable(); criteria_.add(value); onChanged(); } else { criteriaBuilder_.addMessage(value); } return this; } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder addCriteria( int index, cloud.prefab.domain.Prefab.Criterion value) { if (criteriaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCriteriaIsMutable(); criteria_.add(index, value); onChanged(); } else { criteriaBuilder_.addMessage(index, value); } return this; } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder addCriteria( cloud.prefab.domain.Prefab.Criterion.Builder builderForValue) { if (criteriaBuilder_ == null) { ensureCriteriaIsMutable(); criteria_.add(builderForValue.build()); onChanged(); } else { criteriaBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder addCriteria( int index, cloud.prefab.domain.Prefab.Criterion.Builder builderForValue) { if (criteriaBuilder_ == null) { ensureCriteriaIsMutable(); criteria_.add(index, builderForValue.build()); onChanged(); } else { criteriaBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * if all criteria match, then the rule is matched and value is returned
       * 
* * repeated .prefab.Criterion criteria = 1; */ public Builder addAllCriteria( java.lang.Iterable 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 ((bitField0_ & 0x00000002) != 0); } /** * .prefab.ConfigValue value = 2; * @return The value. */ public cloud.prefab.domain.Prefab.ConfigValue getValue() { if (valueBuilder_ == null) { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .prefab.ConfigValue value = 2; */ public Builder setValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ConfigValue value = 2; */ public Builder setValue( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ConfigValue value = 2; */ public Builder mergeValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .prefab.ConfigValue value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .prefab.ConfigValue value = 2; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .prefab.ConfigValue value = 2; */ public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : value_; } } /** * .prefab.ConfigValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ConditionalValue) } // @@protoc_insertion_point(class_scope:prefab.ConditionalValue) private static final cloud.prefab.domain.Prefab.ConditionalValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConditionalValue(); } public static cloud.prefab.domain.Prefab.ConditionalValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConditionalValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConditionalValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CriterionOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Criterion) com.google.protobuf.MessageOrBuilder { /** * string property_name = 1; * @return The propertyName. */ java.lang.String getPropertyName(); /** * string property_name = 1; * @return The bytes for propertyName. */ com.google.protobuf.ByteString getPropertyNameBytes(); /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The enum numeric value on the wire for operator. */ int getOperatorValue(); /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The operator. */ cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator(); /** * .prefab.ConfigValue value_to_match = 3; * @return Whether the valueToMatch field is set. */ boolean hasValueToMatch(); /** * .prefab.ConfigValue value_to_match = 3; * @return The valueToMatch. */ cloud.prefab.domain.Prefab.ConfigValue getValueToMatch(); /** * .prefab.ConfigValue value_to_match = 3; */ cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueToMatchOrBuilder(); } /** * Protobuf type {@code prefab.Criterion} */ public static final class Criterion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Criterion) CriterionOrBuilder { private static final long serialVersionUID = 0L; // Use Criterion.newBuilder() to construct. private Criterion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Criterion() { propertyName_ = ""; operator_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Criterion(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Criterion.class, cloud.prefab.domain.Prefab.Criterion.Builder.class); } /** * Protobuf enum {@code prefab.Criterion.CriterionOperator} */ public enum CriterionOperator implements com.google.protobuf.ProtocolMessageEnum { /** *
       * proto null
       * 
* * NOT_SET = 0; */ NOT_SET(0), /** * LOOKUP_KEY_IN = 1; */ LOOKUP_KEY_IN(1), /** * LOOKUP_KEY_NOT_IN = 2; */ LOOKUP_KEY_NOT_IN(2), /** * IN_SEG = 3; */ IN_SEG(3), /** * NOT_IN_SEG = 4; */ NOT_IN_SEG(4), /** * ALWAYS_TRUE = 5; */ ALWAYS_TRUE(5), /** * PROP_IS_ONE_OF = 6; */ PROP_IS_ONE_OF(6), /** * PROP_IS_NOT_ONE_OF = 7; */ PROP_IS_NOT_ONE_OF(7), /** * PROP_ENDS_WITH_ONE_OF = 8; */ PROP_ENDS_WITH_ONE_OF(8), /** * PROP_DOES_NOT_END_WITH_ONE_OF = 9; */ PROP_DOES_NOT_END_WITH_ONE_OF(9), /** * HIERARCHICAL_MATCH = 10; */ HIERARCHICAL_MATCH(10), /** * IN_INT_RANGE = 11; */ IN_INT_RANGE(11), UNRECOGNIZED(-1), ; /** *
       * proto null
       * 
* * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** * LOOKUP_KEY_IN = 1; */ public static final int LOOKUP_KEY_IN_VALUE = 1; /** * LOOKUP_KEY_NOT_IN = 2; */ public static final int LOOKUP_KEY_NOT_IN_VALUE = 2; /** * IN_SEG = 3; */ public static final int IN_SEG_VALUE = 3; /** * NOT_IN_SEG = 4; */ public static final int NOT_IN_SEG_VALUE = 4; /** * ALWAYS_TRUE = 5; */ public static final int ALWAYS_TRUE_VALUE = 5; /** * PROP_IS_ONE_OF = 6; */ public static final int PROP_IS_ONE_OF_VALUE = 6; /** * PROP_IS_NOT_ONE_OF = 7; */ public static final int PROP_IS_NOT_ONE_OF_VALUE = 7; /** * PROP_ENDS_WITH_ONE_OF = 8; */ public static final int PROP_ENDS_WITH_ONE_OF_VALUE = 8; /** * PROP_DOES_NOT_END_WITH_ONE_OF = 9; */ public static final int PROP_DOES_NOT_END_WITH_ONE_OF_VALUE = 9; /** * HIERARCHICAL_MATCH = 10; */ public static final int HIERARCHICAL_MATCH_VALUE = 10; /** * IN_INT_RANGE = 11; */ public static final int IN_INT_RANGE_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CriterionOperator valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static CriterionOperator forNumber(int value) { switch (value) { case 0: return NOT_SET; case 1: return LOOKUP_KEY_IN; case 2: return LOOKUP_KEY_NOT_IN; case 3: return IN_SEG; case 4: return NOT_IN_SEG; case 5: return ALWAYS_TRUE; case 6: return PROP_IS_ONE_OF; case 7: return PROP_IS_NOT_ONE_OF; case 8: return PROP_ENDS_WITH_ONE_OF; case 9: return PROP_DOES_NOT_END_WITH_ONE_OF; case 10: return HIERARCHICAL_MATCH; case 11: return IN_INT_RANGE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CriterionOperator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CriterionOperator findValueByNumber(int number) { return CriterionOperator.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.Criterion.getDescriptor().getEnumTypes().get(0); } private static final CriterionOperator[] VALUES = values(); public static CriterionOperator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CriterionOperator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.Criterion.CriterionOperator) } private int bitField0_; public static final int PROPERTY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object propertyName_ = ""; /** * string property_name = 1; * @return The propertyName. */ @java.lang.Override public java.lang.String getPropertyName() { java.lang.Object ref = propertyName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); propertyName_ = s; return s; } } /** * string property_name = 1; * @return The bytes for propertyName. */ @java.lang.Override public com.google.protobuf.ByteString getPropertyNameBytes() { java.lang.Object ref = propertyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATOR_FIELD_NUMBER = 2; private int operator_ = 0; /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The enum numeric value on the wire for operator. */ @java.lang.Override public int getOperatorValue() { return operator_; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The operator. */ @java.lang.Override public cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator() { cloud.prefab.domain.Prefab.Criterion.CriterionOperator result = cloud.prefab.domain.Prefab.Criterion.CriterionOperator.forNumber(operator_); return result == null ? cloud.prefab.domain.Prefab.Criterion.CriterionOperator.UNRECOGNIZED : result; } public static final int VALUE_TO_MATCH_FIELD_NUMBER = 3; private cloud.prefab.domain.Prefab.ConfigValue valueToMatch_; /** * .prefab.ConfigValue value_to_match = 3; * @return Whether the valueToMatch field is set. */ @java.lang.Override public boolean hasValueToMatch() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ConfigValue value_to_match = 3; * @return The valueToMatch. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getValueToMatch() { return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_; } /** * .prefab.ConfigValue value_to_match = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueToMatchOrBuilder() { return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, propertyName_); } if (operator_ != cloud.prefab.domain.Prefab.Criterion.CriterionOperator.NOT_SET.getNumber()) { output.writeEnum(2, operator_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getValueToMatch()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, propertyName_); } if (operator_ != cloud.prefab.domain.Prefab.Criterion.CriterionOperator.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, operator_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValueToMatch()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Criterion)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Criterion other = (cloud.prefab.domain.Prefab.Criterion) obj; if (!getPropertyName() .equals(other.getPropertyName())) return false; if (operator_ != other.operator_) return false; if (hasValueToMatch() != other.hasValueToMatch()) return false; if (hasValueToMatch()) { if (!getValueToMatch() .equals(other.getValueToMatch())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROPERTY_NAME_FIELD_NUMBER; hash = (53 * hash) + getPropertyName().hashCode(); hash = (37 * hash) + OPERATOR_FIELD_NUMBER; hash = (53 * hash) + operator_; if (hasValueToMatch()) { hash = (37 * hash) + VALUE_TO_MATCH_FIELD_NUMBER; hash = (53 * hash) + getValueToMatch().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Criterion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Criterion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Criterion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Criterion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Criterion parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Criterion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Criterion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Criterion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Criterion) cloud.prefab.domain.Prefab.CriterionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Criterion.class, cloud.prefab.domain.Prefab.Criterion.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Criterion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueToMatchFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; propertyName_ = ""; operator_ = 0; valueToMatch_ = null; if (valueToMatchBuilder_ != null) { valueToMatchBuilder_.dispose(); valueToMatchBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Criterion_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Criterion getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Criterion.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Criterion build() { cloud.prefab.domain.Prefab.Criterion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Criterion buildPartial() { cloud.prefab.domain.Prefab.Criterion result = new cloud.prefab.domain.Prefab.Criterion(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.Criterion result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.propertyName_ = propertyName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.operator_ = operator_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.valueToMatch_ = valueToMatchBuilder_ == null ? valueToMatch_ : valueToMatchBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Criterion) { return mergeFrom((cloud.prefab.domain.Prefab.Criterion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Criterion other) { if (other == cloud.prefab.domain.Prefab.Criterion.getDefaultInstance()) return this; if (!other.getPropertyName().isEmpty()) { propertyName_ = other.propertyName_; bitField0_ |= 0x00000001; onChanged(); } if (other.operator_ != 0) { setOperatorValue(other.getOperatorValue()); } if (other.hasValueToMatch()) { mergeValueToMatch(other.getValueToMatch()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { propertyName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { operator_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getValueToMatchFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object propertyName_ = ""; /** * string property_name = 1; * @return The propertyName. */ public java.lang.String getPropertyName() { java.lang.Object ref = propertyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); propertyName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string property_name = 1; * @return The bytes for propertyName. */ public com.google.protobuf.ByteString getPropertyNameBytes() { java.lang.Object ref = propertyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string property_name = 1; * @param value The propertyName to set. * @return This builder for chaining. */ public Builder setPropertyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } propertyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string property_name = 1; * @return This builder for chaining. */ public Builder clearPropertyName() { propertyName_ = getDefaultInstance().getPropertyName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string property_name = 1; * @param value The bytes for propertyName to set. * @return This builder for chaining. */ public Builder setPropertyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); propertyName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int operator_ = 0; /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The enum numeric value on the wire for operator. */ @java.lang.Override public int getOperatorValue() { return operator_; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @param value The enum numeric value on the wire for operator to set. * @return This builder for chaining. */ public Builder setOperatorValue(int value) { operator_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @return The operator. */ @java.lang.Override public cloud.prefab.domain.Prefab.Criterion.CriterionOperator getOperator() { cloud.prefab.domain.Prefab.Criterion.CriterionOperator result = cloud.prefab.domain.Prefab.Criterion.CriterionOperator.forNumber(operator_); return result == null ? cloud.prefab.domain.Prefab.Criterion.CriterionOperator.UNRECOGNIZED : result; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @param value The operator to set. * @return This builder for chaining. */ public Builder setOperator(cloud.prefab.domain.Prefab.Criterion.CriterionOperator value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value.getNumber(); onChanged(); return this; } /** * .prefab.Criterion.CriterionOperator operator = 2; * @return This builder for chaining. */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000002); operator_ = 0; onChanged(); return this; } private cloud.prefab.domain.Prefab.ConfigValue valueToMatch_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> valueToMatchBuilder_; /** * .prefab.ConfigValue value_to_match = 3; * @return Whether the valueToMatch field is set. */ public boolean hasValueToMatch() { return ((bitField0_ & 0x00000004) != 0); } /** * .prefab.ConfigValue value_to_match = 3; * @return The valueToMatch. */ public cloud.prefab.domain.Prefab.ConfigValue getValueToMatch() { if (valueToMatchBuilder_ == null) { return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_; } else { return valueToMatchBuilder_.getMessage(); } } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder setValueToMatch(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueToMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } valueToMatch_ = value; } else { valueToMatchBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder setValueToMatch( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (valueToMatchBuilder_ == null) { valueToMatch_ = builderForValue.build(); } else { valueToMatchBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder mergeValueToMatch(cloud.prefab.domain.Prefab.ConfigValue value) { if (valueToMatchBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && valueToMatch_ != null && valueToMatch_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) { getValueToMatchBuilder().mergeFrom(value); } else { valueToMatch_ = value; } } else { valueToMatchBuilder_.mergeFrom(value); } if (valueToMatch_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public Builder clearValueToMatch() { bitField0_ = (bitField0_ & ~0x00000004); valueToMatch_ = null; if (valueToMatchBuilder_ != null) { valueToMatchBuilder_.dispose(); valueToMatchBuilder_ = null; } onChanged(); return this; } /** * .prefab.ConfigValue value_to_match = 3; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getValueToMatchBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValueToMatchFieldBuilder().getBuilder(); } /** * .prefab.ConfigValue value_to_match = 3; */ public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getValueToMatchOrBuilder() { if (valueToMatchBuilder_ != null) { return valueToMatchBuilder_.getMessageOrBuilder(); } else { return valueToMatch_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : valueToMatch_; } } /** * .prefab.ConfigValue value_to_match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> getValueToMatchFieldBuilder() { if (valueToMatchBuilder_ == null) { valueToMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>( getValueToMatch(), getParentForChildren(), isClean()); valueToMatch_ = null; } return valueToMatchBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Criterion) } // @@protoc_insertion_point(class_scope:prefab.Criterion) private static final cloud.prefab.domain.Prefab.Criterion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Criterion(); } public static cloud.prefab.domain.Prefab.Criterion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Criterion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Criterion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoggersOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Loggers) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.Logger loggers = 1; */ java.util.List getLoggersList(); /** * repeated .prefab.Logger loggers = 1; */ cloud.prefab.domain.Prefab.Logger getLoggers(int index); /** * repeated .prefab.Logger loggers = 1; */ int getLoggersCount(); /** * repeated .prefab.Logger loggers = 1; */ java.util.List getLoggersOrBuilderList(); /** * repeated .prefab.Logger loggers = 1; */ cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder( int index); /** * int64 start_at = 2; * @return The startAt. */ long getStartAt(); /** * int64 end_at = 3; * @return The endAt. */ long getEndAt(); /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 4; * @return The instanceHash. */ java.lang.String getInstanceHash(); /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 4; * @return The bytes for instanceHash. */ com.google.protobuf.ByteString getInstanceHashBytes(); /** * optional string namespace = 5; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** * optional string namespace = 5; * @return The namespace. */ java.lang.String getNamespace(); /** * optional string namespace = 5; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); } /** * Protobuf type {@code prefab.Loggers} */ public static final class Loggers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Loggers) LoggersOrBuilder { private static final long serialVersionUID = 0L; // Use Loggers.newBuilder() to construct. private Loggers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Loggers() { loggers_ = java.util.Collections.emptyList(); instanceHash_ = ""; namespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Loggers(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Loggers.class, cloud.prefab.domain.Prefab.Loggers.Builder.class); } private int bitField0_; public static final int LOGGERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List loggers_; /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public java.util.List getLoggersList() { return loggers_; } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public java.util.List getLoggersOrBuilderList() { return loggers_; } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public int getLoggersCount() { return loggers_.size(); } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.Logger getLoggers(int index) { return loggers_.get(index); } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder( int index) { return loggers_.get(index); } public static final int START_AT_FIELD_NUMBER = 2; private long startAt_ = 0L; /** * int64 start_at = 2; * @return The startAt. */ @java.lang.Override public long getStartAt() { return startAt_; } public static final int END_AT_FIELD_NUMBER = 3; private long endAt_ = 0L; /** * int64 end_at = 3; * @return The endAt. */ @java.lang.Override public long getEndAt() { return endAt_; } public static final int INSTANCE_HASH_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object instanceHash_ = ""; /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 4; * @return The instanceHash. */ @java.lang.Override public java.lang.String getInstanceHash() { java.lang.Object ref = instanceHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceHash_ = s; return s; } } /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 4; * @return The bytes for instanceHash. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceHashBytes() { java.lang.Object ref = instanceHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * optional string namespace = 5; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string namespace = 5; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** * optional string namespace = 5; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < loggers_.size(); i++) { output.writeMessage(1, loggers_.get(i)); } if (startAt_ != 0L) { output.writeInt64(2, startAt_); } if (endAt_ != 0L) { output.writeInt64(3, endAt_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceHash_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < loggers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, loggers_.get(i)); } if (startAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startAt_); } if (endAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, endAt_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceHash_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Loggers)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Loggers other = (cloud.prefab.domain.Prefab.Loggers) obj; if (!getLoggersList() .equals(other.getLoggersList())) return false; if (getStartAt() != other.getStartAt()) return false; if (getEndAt() != other.getEndAt()) return false; if (!getInstanceHash() .equals(other.getInstanceHash())) return false; if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getLoggersCount() > 0) { hash = (37 * hash) + LOGGERS_FIELD_NUMBER; hash = (53 * hash) + getLoggersList().hashCode(); } hash = (37 * hash) + START_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartAt()); hash = (37 * hash) + END_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndAt()); hash = (37 * hash) + INSTANCE_HASH_FIELD_NUMBER; hash = (53 * hash) + getInstanceHash().hashCode(); if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Loggers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Loggers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Loggers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Loggers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Loggers parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Loggers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Loggers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Loggers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Loggers) cloud.prefab.domain.Prefab.LoggersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Loggers.class, cloud.prefab.domain.Prefab.Loggers.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Loggers.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (loggersBuilder_ == null) { loggers_ = java.util.Collections.emptyList(); } else { loggers_ = null; loggersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); startAt_ = 0L; endAt_ = 0L; instanceHash_ = ""; namespace_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Loggers_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Loggers getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Loggers.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Loggers build() { cloud.prefab.domain.Prefab.Loggers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Loggers buildPartial() { cloud.prefab.domain.Prefab.Loggers result = new cloud.prefab.domain.Prefab.Loggers(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.Loggers result) { if (loggersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { loggers_ = java.util.Collections.unmodifiableList(loggers_); bitField0_ = (bitField0_ & ~0x00000001); } result.loggers_ = loggers_; } else { result.loggers_ = loggersBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.Loggers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.startAt_ = startAt_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endAt_ = endAt_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.instanceHash_ = instanceHash_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.namespace_ = namespace_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Loggers) { return mergeFrom((cloud.prefab.domain.Prefab.Loggers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Loggers other) { if (other == cloud.prefab.domain.Prefab.Loggers.getDefaultInstance()) return this; if (loggersBuilder_ == null) { if (!other.loggers_.isEmpty()) { if (loggers_.isEmpty()) { loggers_ = other.loggers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLoggersIsMutable(); loggers_.addAll(other.loggers_); } onChanged(); } } else { if (!other.loggers_.isEmpty()) { if (loggersBuilder_.isEmpty()) { loggersBuilder_.dispose(); loggersBuilder_ = null; loggers_ = other.loggers_; bitField0_ = (bitField0_ & ~0x00000001); loggersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoggersFieldBuilder() : null; } else { loggersBuilder_.addAllMessages(other.loggers_); } } } if (other.getStartAt() != 0L) { setStartAt(other.getStartAt()); } if (other.getEndAt() != 0L) { setEndAt(other.getEndAt()); } if (!other.getInstanceHash().isEmpty()) { instanceHash_ = other.instanceHash_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasNamespace()) { namespace_ = other.namespace_; bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.Logger m = input.readMessage( cloud.prefab.domain.Prefab.Logger.parser(), extensionRegistry); if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.add(m); } else { loggersBuilder_.addMessage(m); } break; } // case 10 case 16: { startAt_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { endAt_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { instanceHash_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List loggers_ = java.util.Collections.emptyList(); private void ensureLoggersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { loggers_ = new java.util.ArrayList(loggers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder> loggersBuilder_; /** * repeated .prefab.Logger loggers = 1; */ public java.util.List getLoggersList() { if (loggersBuilder_ == null) { return java.util.Collections.unmodifiableList(loggers_); } else { return loggersBuilder_.getMessageList(); } } /** * repeated .prefab.Logger loggers = 1; */ public int getLoggersCount() { if (loggersBuilder_ == null) { return loggers_.size(); } else { return loggersBuilder_.getCount(); } } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger getLoggers(int index) { if (loggersBuilder_ == null) { return loggers_.get(index); } else { return loggersBuilder_.getMessage(index); } } /** * repeated .prefab.Logger loggers = 1; */ public Builder setLoggers( int index, cloud.prefab.domain.Prefab.Logger value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoggersIsMutable(); loggers_.set(index, value); onChanged(); } else { loggersBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder setLoggers( int index, cloud.prefab.domain.Prefab.Logger.Builder builderForValue) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.set(index, builderForValue.build()); onChanged(); } else { loggersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers(cloud.prefab.domain.Prefab.Logger value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoggersIsMutable(); loggers_.add(value); onChanged(); } else { loggersBuilder_.addMessage(value); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers( int index, cloud.prefab.domain.Prefab.Logger value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoggersIsMutable(); loggers_.add(index, value); onChanged(); } else { loggersBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers( cloud.prefab.domain.Prefab.Logger.Builder builderForValue) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.add(builderForValue.build()); onChanged(); } else { loggersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers( int index, cloud.prefab.domain.Prefab.Logger.Builder builderForValue) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.add(index, builderForValue.build()); onChanged(); } else { loggersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addAllLoggers( java.lang.Iterable values) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, loggers_); onChanged(); } else { loggersBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder clearLoggers() { if (loggersBuilder_ == null) { loggers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { loggersBuilder_.clear(); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder removeLoggers(int index) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.remove(index); onChanged(); } else { loggersBuilder_.remove(index); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger.Builder getLoggersBuilder( int index) { return getLoggersFieldBuilder().getBuilder(index); } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder( int index) { if (loggersBuilder_ == null) { return loggers_.get(index); } else { return loggersBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.Logger loggers = 1; */ public java.util.List getLoggersOrBuilderList() { if (loggersBuilder_ != null) { return loggersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(loggers_); } } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger.Builder addLoggersBuilder() { return getLoggersFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.Logger.getDefaultInstance()); } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger.Builder addLoggersBuilder( int index) { return getLoggersFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.Logger.getDefaultInstance()); } /** * repeated .prefab.Logger loggers = 1; */ public java.util.List getLoggersBuilderList() { return getLoggersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder> getLoggersFieldBuilder() { if (loggersBuilder_ == null) { loggersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder>( loggers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); loggers_ = null; } return loggersBuilder_; } private long startAt_ ; /** * int64 start_at = 2; * @return The startAt. */ @java.lang.Override public long getStartAt() { return startAt_; } /** * int64 start_at = 2; * @param value The startAt to set. * @return This builder for chaining. */ public Builder setStartAt(long value) { startAt_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 start_at = 2; * @return This builder for chaining. */ public Builder clearStartAt() { bitField0_ = (bitField0_ & ~0x00000002); startAt_ = 0L; onChanged(); return this; } private long endAt_ ; /** * int64 end_at = 3; * @return The endAt. */ @java.lang.Override public long getEndAt() { return endAt_; } /** * int64 end_at = 3; * @param value The endAt to set. * @return This builder for chaining. */ public Builder setEndAt(long value) { endAt_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 end_at = 3; * @return This builder for chaining. */ public Builder clearEndAt() { bitField0_ = (bitField0_ & ~0x00000004); endAt_ = 0L; onChanged(); return this; } private java.lang.Object instanceHash_ = ""; /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 4; * @return The instanceHash. */ public java.lang.String getInstanceHash() { java.lang.Object ref = instanceHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceHash_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 4; * @return The bytes for instanceHash. */ public com.google.protobuf.ByteString getInstanceHashBytes() { java.lang.Object ref = instanceHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 4; * @param value The instanceHash to set. * @return This builder for chaining. */ public Builder setInstanceHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceHash_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 4; * @return This builder for chaining. */ public Builder clearInstanceHash() { instanceHash_ = getDefaultInstance().getInstanceHash(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 4; * @param value The bytes for instanceHash to set. * @return This builder for chaining. */ public Builder setInstanceHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceHash_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * optional string namespace = 5; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string namespace = 5; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string namespace = 5; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string namespace = 5; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string namespace = 5; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string namespace = 5; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Loggers) } // @@protoc_insertion_point(class_scope:prefab.Loggers) private static final cloud.prefab.domain.Prefab.Loggers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Loggers(); } public static cloud.prefab.domain.Prefab.Loggers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Loggers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Loggers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoggerOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Logger) com.google.protobuf.MessageOrBuilder { /** * string logger_name = 1; * @return The loggerName. */ java.lang.String getLoggerName(); /** * string logger_name = 1; * @return The bytes for loggerName. */ com.google.protobuf.ByteString getLoggerNameBytes(); /** * optional int64 traces = 2; * @return Whether the traces field is set. */ boolean hasTraces(); /** * optional int64 traces = 2; * @return The traces. */ long getTraces(); /** * optional int64 debugs = 3; * @return Whether the debugs field is set. */ boolean hasDebugs(); /** * optional int64 debugs = 3; * @return The debugs. */ long getDebugs(); /** * optional int64 infos = 4; * @return Whether the infos field is set. */ boolean hasInfos(); /** * optional int64 infos = 4; * @return The infos. */ long getInfos(); /** * optional int64 warns = 5; * @return Whether the warns field is set. */ boolean hasWarns(); /** * optional int64 warns = 5; * @return The warns. */ long getWarns(); /** * optional int64 errors = 6; * @return Whether the errors field is set. */ boolean hasErrors(); /** * optional int64 errors = 6; * @return The errors. */ long getErrors(); /** * optional int64 fatals = 7; * @return Whether the fatals field is set. */ boolean hasFatals(); /** * optional int64 fatals = 7; * @return The fatals. */ long getFatals(); } /** * Protobuf type {@code prefab.Logger} */ public static final class Logger extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Logger) LoggerOrBuilder { private static final long serialVersionUID = 0L; // Use Logger.newBuilder() to construct. private Logger(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Logger() { loggerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Logger(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Logger.class, cloud.prefab.domain.Prefab.Logger.Builder.class); } private int bitField0_; public static final int LOGGER_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object loggerName_ = ""; /** * string logger_name = 1; * @return The loggerName. */ @java.lang.Override public java.lang.String getLoggerName() { java.lang.Object ref = loggerName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loggerName_ = s; return s; } } /** * string logger_name = 1; * @return The bytes for loggerName. */ @java.lang.Override public com.google.protobuf.ByteString getLoggerNameBytes() { java.lang.Object ref = loggerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); loggerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRACES_FIELD_NUMBER = 2; private long traces_ = 0L; /** * optional int64 traces = 2; * @return Whether the traces field is set. */ @java.lang.Override public boolean hasTraces() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 traces = 2; * @return The traces. */ @java.lang.Override public long getTraces() { return traces_; } public static final int DEBUGS_FIELD_NUMBER = 3; private long debugs_ = 0L; /** * optional int64 debugs = 3; * @return Whether the debugs field is set. */ @java.lang.Override public boolean hasDebugs() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 debugs = 3; * @return The debugs. */ @java.lang.Override public long getDebugs() { return debugs_; } public static final int INFOS_FIELD_NUMBER = 4; private long infos_ = 0L; /** * optional int64 infos = 4; * @return Whether the infos field is set. */ @java.lang.Override public boolean hasInfos() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 infos = 4; * @return The infos. */ @java.lang.Override public long getInfos() { return infos_; } public static final int WARNS_FIELD_NUMBER = 5; private long warns_ = 0L; /** * optional int64 warns = 5; * @return Whether the warns field is set. */ @java.lang.Override public boolean hasWarns() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int64 warns = 5; * @return The warns. */ @java.lang.Override public long getWarns() { return warns_; } public static final int ERRORS_FIELD_NUMBER = 6; private long errors_ = 0L; /** * optional int64 errors = 6; * @return Whether the errors field is set. */ @java.lang.Override public boolean hasErrors() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int64 errors = 6; * @return The errors. */ @java.lang.Override public long getErrors() { return errors_; } public static final int FATALS_FIELD_NUMBER = 7; private long fatals_ = 0L; /** * optional int64 fatals = 7; * @return Whether the fatals field is set. */ @java.lang.Override public boolean hasFatals() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int64 fatals = 7; * @return The fatals. */ @java.lang.Override public long getFatals() { return fatals_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, loggerName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, traces_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(3, debugs_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(4, infos_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(5, warns_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(6, errors_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(7, fatals_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggerName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, loggerName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, traces_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, debugs_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, infos_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, warns_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, errors_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, fatals_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Logger)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Logger other = (cloud.prefab.domain.Prefab.Logger) obj; if (!getLoggerName() .equals(other.getLoggerName())) return false; if (hasTraces() != other.hasTraces()) return false; if (hasTraces()) { if (getTraces() != other.getTraces()) return false; } if (hasDebugs() != other.hasDebugs()) return false; if (hasDebugs()) { if (getDebugs() != other.getDebugs()) return false; } if (hasInfos() != other.hasInfos()) return false; if (hasInfos()) { if (getInfos() != other.getInfos()) return false; } if (hasWarns() != other.hasWarns()) return false; if (hasWarns()) { if (getWarns() != other.getWarns()) return false; } if (hasErrors() != other.hasErrors()) return false; if (hasErrors()) { if (getErrors() != other.getErrors()) return false; } if (hasFatals() != other.hasFatals()) return false; if (hasFatals()) { if (getFatals() != other.getFatals()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOGGER_NAME_FIELD_NUMBER; hash = (53 * hash) + getLoggerName().hashCode(); if (hasTraces()) { hash = (37 * hash) + TRACES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTraces()); } if (hasDebugs()) { hash = (37 * hash) + DEBUGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDebugs()); } if (hasInfos()) { hash = (37 * hash) + INFOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInfos()); } if (hasWarns()) { hash = (37 * hash) + WARNS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWarns()); } if (hasErrors()) { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getErrors()); } if (hasFatals()) { hash = (37 * hash) + FATALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFatals()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Logger parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Logger parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Logger parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Logger parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Logger parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Logger parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Logger parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Logger parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Logger parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Logger parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Logger parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Logger parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Logger prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Logger} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Logger) cloud.prefab.domain.Prefab.LoggerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Logger.class, cloud.prefab.domain.Prefab.Logger.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Logger.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; loggerName_ = ""; traces_ = 0L; debugs_ = 0L; infos_ = 0L; warns_ = 0L; errors_ = 0L; fatals_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Logger_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Logger getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Logger.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Logger build() { cloud.prefab.domain.Prefab.Logger result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Logger buildPartial() { cloud.prefab.domain.Prefab.Logger result = new cloud.prefab.domain.Prefab.Logger(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.Logger result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.loggerName_ = loggerName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.traces_ = traces_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.debugs_ = debugs_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.infos_ = infos_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.warns_ = warns_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.errors_ = errors_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.fatals_ = fatals_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Logger) { return mergeFrom((cloud.prefab.domain.Prefab.Logger)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Logger other) { if (other == cloud.prefab.domain.Prefab.Logger.getDefaultInstance()) return this; if (!other.getLoggerName().isEmpty()) { loggerName_ = other.loggerName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTraces()) { setTraces(other.getTraces()); } if (other.hasDebugs()) { setDebugs(other.getDebugs()); } if (other.hasInfos()) { setInfos(other.getInfos()); } if (other.hasWarns()) { setWarns(other.getWarns()); } if (other.hasErrors()) { setErrors(other.getErrors()); } if (other.hasFatals()) { setFatals(other.getFatals()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { loggerName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { traces_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { debugs_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { infos_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { warns_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { errors_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { fatals_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object loggerName_ = ""; /** * string logger_name = 1; * @return The loggerName. */ public java.lang.String getLoggerName() { java.lang.Object ref = loggerName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loggerName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string logger_name = 1; * @return The bytes for loggerName. */ public com.google.protobuf.ByteString getLoggerNameBytes() { java.lang.Object ref = loggerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); loggerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string logger_name = 1; * @param value The loggerName to set. * @return This builder for chaining. */ public Builder setLoggerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } loggerName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string logger_name = 1; * @return This builder for chaining. */ public Builder clearLoggerName() { loggerName_ = getDefaultInstance().getLoggerName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string logger_name = 1; * @param value The bytes for loggerName to set. * @return This builder for chaining. */ public Builder setLoggerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); loggerName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long traces_ ; /** * optional int64 traces = 2; * @return Whether the traces field is set. */ @java.lang.Override public boolean hasTraces() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 traces = 2; * @return The traces. */ @java.lang.Override public long getTraces() { return traces_; } /** * optional int64 traces = 2; * @param value The traces to set. * @return This builder for chaining. */ public Builder setTraces(long value) { traces_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int64 traces = 2; * @return This builder for chaining. */ public Builder clearTraces() { bitField0_ = (bitField0_ & ~0x00000002); traces_ = 0L; onChanged(); return this; } private long debugs_ ; /** * optional int64 debugs = 3; * @return Whether the debugs field is set. */ @java.lang.Override public boolean hasDebugs() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 debugs = 3; * @return The debugs. */ @java.lang.Override public long getDebugs() { return debugs_; } /** * optional int64 debugs = 3; * @param value The debugs to set. * @return This builder for chaining. */ public Builder setDebugs(long value) { debugs_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional int64 debugs = 3; * @return This builder for chaining. */ public Builder clearDebugs() { bitField0_ = (bitField0_ & ~0x00000004); debugs_ = 0L; onChanged(); return this; } private long infos_ ; /** * optional int64 infos = 4; * @return Whether the infos field is set. */ @java.lang.Override public boolean hasInfos() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int64 infos = 4; * @return The infos. */ @java.lang.Override public long getInfos() { return infos_; } /** * optional int64 infos = 4; * @param value The infos to set. * @return This builder for chaining. */ public Builder setInfos(long value) { infos_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional int64 infos = 4; * @return This builder for chaining. */ public Builder clearInfos() { bitField0_ = (bitField0_ & ~0x00000008); infos_ = 0L; onChanged(); return this; } private long warns_ ; /** * optional int64 warns = 5; * @return Whether the warns field is set. */ @java.lang.Override public boolean hasWarns() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int64 warns = 5; * @return The warns. */ @java.lang.Override public long getWarns() { return warns_; } /** * optional int64 warns = 5; * @param value The warns to set. * @return This builder for chaining. */ public Builder setWarns(long value) { warns_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional int64 warns = 5; * @return This builder for chaining. */ public Builder clearWarns() { bitField0_ = (bitField0_ & ~0x00000010); warns_ = 0L; onChanged(); return this; } private long errors_ ; /** * optional int64 errors = 6; * @return Whether the errors field is set. */ @java.lang.Override public boolean hasErrors() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int64 errors = 6; * @return The errors. */ @java.lang.Override public long getErrors() { return errors_; } /** * optional int64 errors = 6; * @param value The errors to set. * @return This builder for chaining. */ public Builder setErrors(long value) { errors_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional int64 errors = 6; * @return This builder for chaining. */ public Builder clearErrors() { bitField0_ = (bitField0_ & ~0x00000020); errors_ = 0L; onChanged(); return this; } private long fatals_ ; /** * optional int64 fatals = 7; * @return Whether the fatals field is set. */ @java.lang.Override public boolean hasFatals() { return ((bitField0_ & 0x00000040) != 0); } /** * optional int64 fatals = 7; * @return The fatals. */ @java.lang.Override public long getFatals() { return fatals_; } /** * optional int64 fatals = 7; * @param value The fatals to set. * @return This builder for chaining. */ public Builder setFatals(long value) { fatals_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional int64 fatals = 7; * @return This builder for chaining. */ public Builder clearFatals() { bitField0_ = (bitField0_ & ~0x00000040); fatals_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Logger) } // @@protoc_insertion_point(class_scope:prefab.Logger) private static final cloud.prefab.domain.Prefab.Logger DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Logger(); } public static cloud.prefab.domain.Prefab.Logger getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Logger parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Logger getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoggerReportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LoggerReportResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code prefab.LoggerReportResponse} */ public static final class LoggerReportResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LoggerReportResponse) LoggerReportResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LoggerReportResponse.newBuilder() to construct. private LoggerReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoggerReportResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoggerReportResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LoggerReportResponse.class, cloud.prefab.domain.Prefab.LoggerReportResponse.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LoggerReportResponse)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LoggerReportResponse other = (cloud.prefab.domain.Prefab.LoggerReportResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LoggerReportResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.LoggerReportResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.LoggerReportResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LoggerReportResponse) cloud.prefab.domain.Prefab.LoggerReportResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LoggerReportResponse.class, cloud.prefab.domain.Prefab.LoggerReportResponse.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LoggerReportResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggerReportResponse_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LoggerReportResponse getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LoggerReportResponse.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LoggerReportResponse build() { cloud.prefab.domain.Prefab.LoggerReportResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LoggerReportResponse buildPartial() { cloud.prefab.domain.Prefab.LoggerReportResponse result = new cloud.prefab.domain.Prefab.LoggerReportResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.LoggerReportResponse) { return mergeFrom((cloud.prefab.domain.Prefab.LoggerReportResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LoggerReportResponse other) { if (other == cloud.prefab.domain.Prefab.LoggerReportResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LoggerReportResponse) } // @@protoc_insertion_point(class_scope:prefab.LoggerReportResponse) private static final cloud.prefab.domain.Prefab.LoggerReportResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LoggerReportResponse(); } public static cloud.prefab.domain.Prefab.LoggerReportResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoggerReportResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LoggerReportResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LimitResponse) com.google.protobuf.MessageOrBuilder { /** * bool passed = 1; * @return The passed. */ boolean getPassed(); /** *
     * for returnable: rtn this value
     * 
* * int64 expires_at = 2; * @return The expiresAt. */ long getExpiresAt(); /** *
     * events:pageview:homepage:123123
     * 
* * string enforced_group = 3; * @return The enforcedGroup. */ java.lang.String getEnforcedGroup(); /** *
     * events:pageview:homepage:123123
     * 
* * string enforced_group = 3; * @return The bytes for enforcedGroup. */ com.google.protobuf.ByteString getEnforcedGroupBytes(); /** * int64 current_bucket = 4; * @return The currentBucket. */ long getCurrentBucket(); /** *
     * events:pageview
     * 
* * string policy_group = 5; * @return The policyGroup. */ java.lang.String getPolicyGroup(); /** *
     * events:pageview
     * 
* * string policy_group = 5; * @return The bytes for policyGroup. */ com.google.protobuf.ByteString getPolicyGroupBytes(); /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The enum numeric value on the wire for policyName. */ int getPolicyNameValue(); /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The policyName. */ cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName(); /** * int32 policy_limit = 7; * @return The policyLimit. */ int getPolicyLimit(); /** * int64 amount = 8; * @return The amount. */ long getAmount(); /** * int64 limit_reset_at = 9; * @return The limitResetAt. */ long getLimitResetAt(); /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The enum numeric value on the wire for safetyLevel. */ int getSafetyLevelValue(); /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The safetyLevel. */ cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel(); } /** * Protobuf type {@code prefab.LimitResponse} */ public static final class LimitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LimitResponse) LimitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LimitResponse.newBuilder() to construct. private LimitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitResponse() { enforcedGroup_ = ""; policyGroup_ = ""; policyName_ = 0; safetyLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LimitResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitResponse.class, cloud.prefab.domain.Prefab.LimitResponse.Builder.class); } /** * Protobuf enum {@code prefab.LimitResponse.LimitPolicyNames} */ public enum LimitPolicyNames implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET = 0; */ NOT_SET(0), /** * SECONDLY_ROLLING = 1; */ SECONDLY_ROLLING(1), /** * MINUTELY_ROLLING = 3; */ MINUTELY_ROLLING(3), /** * HOURLY_ROLLING = 5; */ HOURLY_ROLLING(5), /** * DAILY_ROLLING = 7; */ DAILY_ROLLING(7), /** * MONTHLY_ROLLING = 8; */ MONTHLY_ROLLING(8), /** * INFINITE = 9; */ INFINITE(9), /** * YEARLY_ROLLING = 10; */ YEARLY_ROLLING(10), UNRECOGNIZED(-1), ; /** * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** * SECONDLY_ROLLING = 1; */ public static final int SECONDLY_ROLLING_VALUE = 1; /** * MINUTELY_ROLLING = 3; */ public static final int MINUTELY_ROLLING_VALUE = 3; /** * HOURLY_ROLLING = 5; */ public static final int HOURLY_ROLLING_VALUE = 5; /** * DAILY_ROLLING = 7; */ public static final int DAILY_ROLLING_VALUE = 7; /** * MONTHLY_ROLLING = 8; */ public static final int MONTHLY_ROLLING_VALUE = 8; /** * INFINITE = 9; */ public static final int INFINITE_VALUE = 9; /** * YEARLY_ROLLING = 10; */ public static final int YEARLY_ROLLING_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LimitPolicyNames valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LimitPolicyNames forNumber(int value) { switch (value) { case 0: return NOT_SET; case 1: return SECONDLY_ROLLING; case 3: return MINUTELY_ROLLING; case 5: return HOURLY_ROLLING; case 7: return DAILY_ROLLING; case 8: return MONTHLY_ROLLING; case 9: return INFINITE; case 10: return YEARLY_ROLLING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LimitPolicyNames> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LimitPolicyNames findValueByNumber(int number) { return LimitPolicyNames.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.LimitResponse.getDescriptor().getEnumTypes().get(0); } private static final LimitPolicyNames[] VALUES = values(); public static LimitPolicyNames valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LimitPolicyNames(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.LimitResponse.LimitPolicyNames) } public static final int PASSED_FIELD_NUMBER = 1; private boolean passed_ = false; /** * bool passed = 1; * @return The passed. */ @java.lang.Override public boolean getPassed() { return passed_; } public static final int EXPIRES_AT_FIELD_NUMBER = 2; private long expiresAt_ = 0L; /** *
     * for returnable: rtn this value
     * 
* * int64 expires_at = 2; * @return The expiresAt. */ @java.lang.Override public long getExpiresAt() { return expiresAt_; } public static final int ENFORCED_GROUP_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object enforcedGroup_ = ""; /** *
     * events:pageview:homepage:123123
     * 
* * string enforced_group = 3; * @return The enforcedGroup. */ @java.lang.Override public java.lang.String getEnforcedGroup() { java.lang.Object ref = enforcedGroup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); enforcedGroup_ = s; return s; } } /** *
     * events:pageview:homepage:123123
     * 
* * string enforced_group = 3; * @return The bytes for enforcedGroup. */ @java.lang.Override public com.google.protobuf.ByteString getEnforcedGroupBytes() { java.lang.Object ref = enforcedGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); enforcedGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENT_BUCKET_FIELD_NUMBER = 4; private long currentBucket_ = 0L; /** * int64 current_bucket = 4; * @return The currentBucket. */ @java.lang.Override public long getCurrentBucket() { return currentBucket_; } public static final int POLICY_GROUP_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object policyGroup_ = ""; /** *
     * events:pageview
     * 
* * string policy_group = 5; * @return The policyGroup. */ @java.lang.Override public java.lang.String getPolicyGroup() { java.lang.Object ref = policyGroup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyGroup_ = s; return s; } } /** *
     * events:pageview
     * 
* * string policy_group = 5; * @return The bytes for policyGroup. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyGroupBytes() { java.lang.Object ref = policyGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POLICY_NAME_FIELD_NUMBER = 6; private int policyName_ = 0; /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The enum numeric value on the wire for policyName. */ @java.lang.Override public int getPolicyNameValue() { return policyName_; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.forNumber(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } public static final int POLICY_LIMIT_FIELD_NUMBER = 7; private int policyLimit_ = 0; /** * int32 policy_limit = 7; * @return The policyLimit. */ @java.lang.Override public int getPolicyLimit() { return policyLimit_; } public static final int AMOUNT_FIELD_NUMBER = 8; private long amount_ = 0L; /** * int64 amount = 8; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } public static final int LIMIT_RESET_AT_FIELD_NUMBER = 9; private long limitResetAt_ = 0L; /** * int64 limit_reset_at = 9; * @return The limitResetAt. */ @java.lang.Override public long getLimitResetAt() { return limitResetAt_; } public static final int SAFETY_LEVEL_FIELD_NUMBER = 10; private int safetyLevel_ = 0; /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (passed_ != false) { output.writeBool(1, passed_); } if (expiresAt_ != 0L) { output.writeInt64(2, expiresAt_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcedGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, enforcedGroup_); } if (currentBucket_ != 0L) { output.writeInt64(4, currentBucket_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, policyGroup_); } if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) { output.writeEnum(6, policyName_); } if (policyLimit_ != 0) { output.writeInt32(7, policyLimit_); } if (amount_ != 0L) { output.writeInt64(8, amount_); } if (limitResetAt_ != 0L) { output.writeInt64(9, limitResetAt_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { output.writeEnum(10, safetyLevel_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (passed_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, passed_); } if (expiresAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, expiresAt_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enforcedGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, enforcedGroup_); } if (currentBucket_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, currentBucket_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, policyGroup_); } if (policyName_ != cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, policyName_); } if (policyLimit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, policyLimit_); } if (amount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, amount_); } if (limitResetAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, limitResetAt_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, safetyLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LimitResponse)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LimitResponse other = (cloud.prefab.domain.Prefab.LimitResponse) obj; if (getPassed() != other.getPassed()) return false; if (getExpiresAt() != other.getExpiresAt()) return false; if (!getEnforcedGroup() .equals(other.getEnforcedGroup())) return false; if (getCurrentBucket() != other.getCurrentBucket()) return false; if (!getPolicyGroup() .equals(other.getPolicyGroup())) return false; if (policyName_ != other.policyName_) return false; if (getPolicyLimit() != other.getPolicyLimit()) return false; if (getAmount() != other.getAmount()) return false; if (getLimitResetAt() != other.getLimitResetAt()) return false; if (safetyLevel_ != other.safetyLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PASSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPassed()); hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpiresAt()); hash = (37 * hash) + ENFORCED_GROUP_FIELD_NUMBER; hash = (53 * hash) + getEnforcedGroup().hashCode(); hash = (37 * hash) + CURRENT_BUCKET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentBucket()); hash = (37 * hash) + POLICY_GROUP_FIELD_NUMBER; hash = (53 * hash) + getPolicyGroup().hashCode(); hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; hash = (53 * hash) + policyName_; hash = (37 * hash) + POLICY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getPolicyLimit(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAmount()); hash = (37 * hash) + LIMIT_RESET_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLimitResetAt()); hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + safetyLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.LimitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.LimitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LimitResponse) cloud.prefab.domain.Prefab.LimitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitResponse.class, cloud.prefab.domain.Prefab.LimitResponse.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LimitResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; passed_ = false; expiresAt_ = 0L; enforcedGroup_ = ""; currentBucket_ = 0L; policyGroup_ = ""; policyName_ = 0; policyLimit_ = 0; amount_ = 0L; limitResetAt_ = 0L; safetyLevel_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitResponse_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LimitResponse.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse build() { cloud.prefab.domain.Prefab.LimitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse buildPartial() { cloud.prefab.domain.Prefab.LimitResponse result = new cloud.prefab.domain.Prefab.LimitResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.LimitResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.passed_ = passed_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expiresAt_ = expiresAt_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.enforcedGroup_ = enforcedGroup_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.currentBucket_ = currentBucket_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.policyGroup_ = policyGroup_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.policyName_ = policyName_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.policyLimit_ = policyLimit_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.amount_ = amount_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.limitResetAt_ = limitResetAt_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.safetyLevel_ = safetyLevel_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.LimitResponse) { return mergeFrom((cloud.prefab.domain.Prefab.LimitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitResponse other) { if (other == cloud.prefab.domain.Prefab.LimitResponse.getDefaultInstance()) return this; if (other.getPassed() != false) { setPassed(other.getPassed()); } if (other.getExpiresAt() != 0L) { setExpiresAt(other.getExpiresAt()); } if (!other.getEnforcedGroup().isEmpty()) { enforcedGroup_ = other.enforcedGroup_; bitField0_ |= 0x00000004; onChanged(); } if (other.getCurrentBucket() != 0L) { setCurrentBucket(other.getCurrentBucket()); } if (!other.getPolicyGroup().isEmpty()) { policyGroup_ = other.policyGroup_; bitField0_ |= 0x00000010; onChanged(); } if (other.policyName_ != 0) { setPolicyNameValue(other.getPolicyNameValue()); } if (other.getPolicyLimit() != 0) { setPolicyLimit(other.getPolicyLimit()); } if (other.getAmount() != 0L) { setAmount(other.getAmount()); } if (other.getLimitResetAt() != 0L) { setLimitResetAt(other.getLimitResetAt()); } if (other.safetyLevel_ != 0) { setSafetyLevelValue(other.getSafetyLevelValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { passed_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { expiresAt_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { enforcedGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { currentBucket_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { policyGroup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { policyName_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { policyLimit_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { amount_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { limitResetAt_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { safetyLevel_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean passed_ ; /** * bool passed = 1; * @return The passed. */ @java.lang.Override public boolean getPassed() { return passed_; } /** * bool passed = 1; * @param value The passed to set. * @return This builder for chaining. */ public Builder setPassed(boolean value) { passed_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bool passed = 1; * @return This builder for chaining. */ public Builder clearPassed() { bitField0_ = (bitField0_ & ~0x00000001); passed_ = false; onChanged(); return this; } private long expiresAt_ ; /** *
       * for returnable: rtn this value
       * 
* * int64 expires_at = 2; * @return The expiresAt. */ @java.lang.Override public long getExpiresAt() { return expiresAt_; } /** *
       * for returnable: rtn this value
       * 
* * int64 expires_at = 2; * @param value The expiresAt to set. * @return This builder for chaining. */ public Builder setExpiresAt(long value) { expiresAt_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * for returnable: rtn this value
       * 
* * int64 expires_at = 2; * @return This builder for chaining. */ public Builder clearExpiresAt() { bitField0_ = (bitField0_ & ~0x00000002); expiresAt_ = 0L; onChanged(); return this; } private java.lang.Object enforcedGroup_ = ""; /** *
       * events:pageview:homepage:123123
       * 
* * string enforced_group = 3; * @return The enforcedGroup. */ public java.lang.String getEnforcedGroup() { java.lang.Object ref = enforcedGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); enforcedGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * events:pageview:homepage:123123
       * 
* * string enforced_group = 3; * @return The bytes for enforcedGroup. */ public com.google.protobuf.ByteString getEnforcedGroupBytes() { java.lang.Object ref = enforcedGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); enforcedGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * events:pageview:homepage:123123
       * 
* * string enforced_group = 3; * @param value The enforcedGroup to set. * @return This builder for chaining. */ public Builder setEnforcedGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } enforcedGroup_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * events:pageview:homepage:123123
       * 
* * string enforced_group = 3; * @return This builder for chaining. */ public Builder clearEnforcedGroup() { enforcedGroup_ = getDefaultInstance().getEnforcedGroup(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * events:pageview:homepage:123123
       * 
* * string enforced_group = 3; * @param value The bytes for enforcedGroup to set. * @return This builder for chaining. */ public Builder setEnforcedGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); enforcedGroup_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private long currentBucket_ ; /** * int64 current_bucket = 4; * @return The currentBucket. */ @java.lang.Override public long getCurrentBucket() { return currentBucket_; } /** * int64 current_bucket = 4; * @param value The currentBucket to set. * @return This builder for chaining. */ public Builder setCurrentBucket(long value) { currentBucket_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 current_bucket = 4; * @return This builder for chaining. */ public Builder clearCurrentBucket() { bitField0_ = (bitField0_ & ~0x00000008); currentBucket_ = 0L; onChanged(); return this; } private java.lang.Object policyGroup_ = ""; /** *
       * events:pageview
       * 
* * string policy_group = 5; * @return The policyGroup. */ public java.lang.String getPolicyGroup() { java.lang.Object ref = policyGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * events:pageview
       * 
* * string policy_group = 5; * @return The bytes for policyGroup. */ public com.google.protobuf.ByteString getPolicyGroupBytes() { java.lang.Object ref = policyGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * events:pageview
       * 
* * string policy_group = 5; * @param value The policyGroup to set. * @return This builder for chaining. */ public Builder setPolicyGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * events:pageview
       * 
* * string policy_group = 5; * @return This builder for chaining. */ public Builder clearPolicyGroup() { policyGroup_ = getDefaultInstance().getPolicyGroup(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
       * events:pageview
       * 
* * string policy_group = 5; * @param value The bytes for policyGroup to set. * @return This builder for chaining. */ public Builder setPolicyGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyGroup_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int policyName_ = 0; /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The enum numeric value on the wire for policyName. */ @java.lang.Override public int getPolicyNameValue() { return policyName_; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @param value The enum numeric value on the wire for policyName to set. * @return This builder for chaining. */ public Builder setPolicyNameValue(int value) { policyName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.forNumber(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @param value The policyName to set. * @return This builder for chaining. */ public Builder setPolicyName(cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; policyName_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 6; * @return This builder for chaining. */ public Builder clearPolicyName() { bitField0_ = (bitField0_ & ~0x00000020); policyName_ = 0; onChanged(); return this; } private int policyLimit_ ; /** * int32 policy_limit = 7; * @return The policyLimit. */ @java.lang.Override public int getPolicyLimit() { return policyLimit_; } /** * int32 policy_limit = 7; * @param value The policyLimit to set. * @return This builder for chaining. */ public Builder setPolicyLimit(int value) { policyLimit_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * int32 policy_limit = 7; * @return This builder for chaining. */ public Builder clearPolicyLimit() { bitField0_ = (bitField0_ & ~0x00000040); policyLimit_ = 0; onChanged(); return this; } private long amount_ ; /** * int64 amount = 8; * @return The amount. */ @java.lang.Override public long getAmount() { return amount_; } /** * int64 amount = 8; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(long value) { amount_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 amount = 8; * @return This builder for chaining. */ public Builder clearAmount() { bitField0_ = (bitField0_ & ~0x00000080); amount_ = 0L; onChanged(); return this; } private long limitResetAt_ ; /** * int64 limit_reset_at = 9; * @return The limitResetAt. */ @java.lang.Override public long getLimitResetAt() { return limitResetAt_; } /** * int64 limit_reset_at = 9; * @param value The limitResetAt to set. * @return This builder for chaining. */ public Builder setLimitResetAt(long value) { limitResetAt_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int64 limit_reset_at = 9; * @return This builder for chaining. */ public Builder clearLimitResetAt() { bitField0_ = (bitField0_ & ~0x00000100); limitResetAt_ = 0L; onChanged(); return this; } private int safetyLevel_ = 0; /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @param value The enum numeric value on the wire for safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevelValue(int value) { safetyLevel_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @param value The safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; safetyLevel_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitDefinition.SafetyLevel safety_level = 10; * @return This builder for chaining. */ public Builder clearSafetyLevel() { bitField0_ = (bitField0_ & ~0x00000200); safetyLevel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LimitResponse) } // @@protoc_insertion_point(class_scope:prefab.LimitResponse) private static final cloud.prefab.domain.Prefab.LimitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitResponse(); } public static cloud.prefab.domain.Prefab.LimitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LimitRequest) com.google.protobuf.MessageOrBuilder { /** * int64 account_id = 1; * @return The accountId. */ long getAccountId(); /** * int32 acquire_amount = 2; * @return The acquireAmount. */ int getAcquireAmount(); /** * repeated string groups = 3; * @return A list containing the groups. */ java.util.List getGroupsList(); /** * repeated string groups = 3; * @return The count of groups. */ int getGroupsCount(); /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ java.lang.String getGroups(int index); /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ com.google.protobuf.ByteString getGroupsBytes(int index); /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The enum numeric value on the wire for limitCombiner. */ int getLimitCombinerValue(); /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The limitCombiner. */ cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner(); /** * bool allow_partial_response = 5; * @return The allowPartialResponse. */ boolean getAllowPartialResponse(); /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The enum numeric value on the wire for safetyLevel. */ int getSafetyLevelValue(); /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The safetyLevel. */ cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel(); } /** * Protobuf type {@code prefab.LimitRequest} */ public static final class LimitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LimitRequest) LimitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LimitRequest.newBuilder() to construct. private LimitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitRequest() { groups_ = com.google.protobuf.LazyStringArrayList.emptyList(); limitCombiner_ = 0; safetyLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LimitRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitRequest.class, cloud.prefab.domain.Prefab.LimitRequest.Builder.class); } /** * Protobuf enum {@code prefab.LimitRequest.LimitCombiner} */ public enum LimitCombiner implements com.google.protobuf.ProtocolMessageEnum { /** * NOT_SET = 0; */ NOT_SET(0), /** * MINIMUM = 1; */ MINIMUM(1), /** * MAXIMUM = 2; */ MAXIMUM(2), UNRECOGNIZED(-1), ; /** * NOT_SET = 0; */ public static final int NOT_SET_VALUE = 0; /** * MINIMUM = 1; */ public static final int MINIMUM_VALUE = 1; /** * MAXIMUM = 2; */ public static final int MAXIMUM_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LimitCombiner valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LimitCombiner forNumber(int value) { switch (value) { case 0: return NOT_SET; case 1: return MINIMUM; case 2: return MAXIMUM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LimitCombiner> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LimitCombiner findValueByNumber(int number) { return LimitCombiner.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cloud.prefab.domain.Prefab.LimitRequest.getDescriptor().getEnumTypes().get(0); } private static final LimitCombiner[] VALUES = values(); public static LimitCombiner valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LimitCombiner(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.LimitRequest.LimitCombiner) } public static final int ACCOUNT_ID_FIELD_NUMBER = 1; private long accountId_ = 0L; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int ACQUIRE_AMOUNT_FIELD_NUMBER = 2; private int acquireAmount_ = 0; /** * int32 acquire_amount = 2; * @return The acquireAmount. */ @java.lang.Override public int getAcquireAmount() { return acquireAmount_; } public static final int GROUPS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList groups_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string groups = 3; * @return A list containing the groups. */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_; } /** * repeated string groups = 3; * @return The count of groups. */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } public static final int LIMIT_COMBINER_FIELD_NUMBER = 4; private int limitCombiner_ = 0; /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The enum numeric value on the wire for limitCombiner. */ @java.lang.Override public int getLimitCombinerValue() { return limitCombiner_; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The limitCombiner. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() { cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.forNumber(limitCombiner_); return result == null ? cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.UNRECOGNIZED : result; } public static final int ALLOW_PARTIAL_RESPONSE_FIELD_NUMBER = 5; private boolean allowPartialResponse_ = false; /** * bool allow_partial_response = 5; * @return The allowPartialResponse. */ @java.lang.Override public boolean getAllowPartialResponse() { return allowPartialResponse_; } public static final int SAFETY_LEVEL_FIELD_NUMBER = 6; private int safetyLevel_ = 0; /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** *
     * [default = L4_BEST_EFFORT];
     * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (accountId_ != 0L) { output.writeInt64(1, accountId_); } if (acquireAmount_ != 0) { output.writeInt32(2, acquireAmount_); } for (int i = 0; i < groups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groups_.getRaw(i)); } if (limitCombiner_ != cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.NOT_SET.getNumber()) { output.writeEnum(4, limitCombiner_); } if (allowPartialResponse_ != false) { output.writeBool(5, allowPartialResponse_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { output.writeEnum(6, safetyLevel_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, accountId_); } if (acquireAmount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, acquireAmount_); } { int dataSize = 0; for (int i = 0; i < groups_.size(); i++) { dataSize += computeStringSizeNoTag(groups_.getRaw(i)); } size += dataSize; size += 1 * getGroupsList().size(); } if (limitCombiner_ != cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, limitCombiner_); } if (allowPartialResponse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, allowPartialResponse_); } if (safetyLevel_ != cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.NOT_SET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, safetyLevel_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LimitRequest)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LimitRequest other = (cloud.prefab.domain.Prefab.LimitRequest) obj; if (getAccountId() != other.getAccountId()) return false; if (getAcquireAmount() != other.getAcquireAmount()) return false; if (!getGroupsList() .equals(other.getGroupsList())) return false; if (limitCombiner_ != other.limitCombiner_) return false; if (getAllowPartialResponse() != other.getAllowPartialResponse()) return false; if (safetyLevel_ != other.safetyLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + ACQUIRE_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAcquireAmount(); if (getGroupsCount() > 0) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + getGroupsList().hashCode(); } hash = (37 * hash) + LIMIT_COMBINER_FIELD_NUMBER; hash = (53 * hash) + limitCombiner_; hash = (37 * hash) + ALLOW_PARTIAL_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowPartialResponse()); hash = (37 * hash) + SAFETY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + safetyLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LimitRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.LimitRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.LimitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LimitRequest) cloud.prefab.domain.Prefab.LimitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LimitRequest.class, cloud.prefab.domain.Prefab.LimitRequest.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LimitRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = 0L; acquireAmount_ = 0; groups_ = com.google.protobuf.LazyStringArrayList.emptyList(); limitCombiner_ = 0; allowPartialResponse_ = false; safetyLevel_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LimitRequest_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LimitRequest.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest build() { cloud.prefab.domain.Prefab.LimitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest buildPartial() { cloud.prefab.domain.Prefab.LimitRequest result = new cloud.prefab.domain.Prefab.LimitRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.LimitRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.acquireAmount_ = acquireAmount_; } if (((from_bitField0_ & 0x00000004) != 0)) { groups_.makeImmutable(); result.groups_ = groups_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.limitCombiner_ = limitCombiner_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.allowPartialResponse_ = allowPartialResponse_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.safetyLevel_ = safetyLevel_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.LimitRequest) { return mergeFrom((cloud.prefab.domain.Prefab.LimitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LimitRequest other) { if (other == cloud.prefab.domain.Prefab.LimitRequest.getDefaultInstance()) return this; if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (other.getAcquireAmount() != 0) { setAcquireAmount(other.getAcquireAmount()); } if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ |= 0x00000004; } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } if (other.limitCombiner_ != 0) { setLimitCombinerValue(other.getLimitCombinerValue()); } if (other.getAllowPartialResponse() != false) { setAllowPartialResponse(other.getAllowPartialResponse()); } if (other.safetyLevel_ != 0) { setSafetyLevelValue(other.getSafetyLevelValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { acquireAmount_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureGroupsIsMutable(); groups_.add(s); break; } // case 26 case 32: { limitCombiner_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { allowPartialResponse_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { safetyLevel_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long accountId_ ; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000001); accountId_ = 0L; onChanged(); return this; } private int acquireAmount_ ; /** * int32 acquire_amount = 2; * @return The acquireAmount. */ @java.lang.Override public int getAcquireAmount() { return acquireAmount_; } /** * int32 acquire_amount = 2; * @param value The acquireAmount to set. * @return This builder for chaining. */ public Builder setAcquireAmount(int value) { acquireAmount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 acquire_amount = 2; * @return This builder for chaining. */ public Builder clearAcquireAmount() { bitField0_ = (bitField0_ & ~0x00000002); acquireAmount_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList groups_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureGroupsIsMutable() { if (!groups_.isModifiable()) { groups_ = new com.google.protobuf.LazyStringArrayList(groups_); } bitField0_ |= 0x00000004; } /** * repeated string groups = 3; * @return A list containing the groups. */ public com.google.protobuf.ProtocolStringList getGroupsList() { groups_.makeImmutable(); return groups_; } /** * repeated string groups = 3; * @return The count of groups. */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } /** * repeated string groups = 3; * @param index The index to set the value at. * @param value The groups to set. * @return This builder for chaining. */ public Builder setGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string groups = 3; * @param value The groups to add. * @return This builder for chaining. */ public Builder addGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string groups = 3; * @param values The groups to add. * @return This builder for chaining. */ public Builder addAllGroups( java.lang.Iterable values) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string groups = 3; * @return This builder for chaining. */ public Builder clearGroups() { groups_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** * repeated string groups = 3; * @param value The bytes of the groups to add. * @return This builder for chaining. */ public Builder addGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupsIsMutable(); groups_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private int limitCombiner_ = 0; /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The enum numeric value on the wire for limitCombiner. */ @java.lang.Override public int getLimitCombinerValue() { return limitCombiner_; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @param value The enum numeric value on the wire for limitCombiner to set. * @return This builder for chaining. */ public Builder setLimitCombinerValue(int value) { limitCombiner_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return The limitCombiner. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner getLimitCombiner() { cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner result = cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.forNumber(limitCombiner_); return result == null ? cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner.UNRECOGNIZED : result; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @param value The limitCombiner to set. * @return This builder for chaining. */ public Builder setLimitCombiner(cloud.prefab.domain.Prefab.LimitRequest.LimitCombiner value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; limitCombiner_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitRequest.LimitCombiner limit_combiner = 4; * @return This builder for chaining. */ public Builder clearLimitCombiner() { bitField0_ = (bitField0_ & ~0x00000008); limitCombiner_ = 0; onChanged(); return this; } private boolean allowPartialResponse_ ; /** * bool allow_partial_response = 5; * @return The allowPartialResponse. */ @java.lang.Override public boolean getAllowPartialResponse() { return allowPartialResponse_; } /** * bool allow_partial_response = 5; * @param value The allowPartialResponse to set. * @return This builder for chaining. */ public Builder setAllowPartialResponse(boolean value) { allowPartialResponse_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bool allow_partial_response = 5; * @return This builder for chaining. */ public Builder clearAllowPartialResponse() { bitField0_ = (bitField0_ & ~0x00000010); allowPartialResponse_ = false; onChanged(); return this; } private int safetyLevel_ = 0; /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The enum numeric value on the wire for safetyLevel. */ @java.lang.Override public int getSafetyLevelValue() { return safetyLevel_; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @param value The enum numeric value on the wire for safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevelValue(int value) { safetyLevel_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @param value The safetyLevel to set. * @return This builder for chaining. */ public Builder setSafetyLevel(cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; safetyLevel_ = value.getNumber(); onChanged(); return this; } /** *
       * [default = L4_BEST_EFFORT];
       * 
* * .prefab.LimitDefinition.SafetyLevel safety_level = 6; * @return This builder for chaining. */ public Builder clearSafetyLevel() { bitField0_ = (bitField0_ & ~0x00000020); safetyLevel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.LimitRequest) } // @@protoc_insertion_point(class_scope:prefab.LimitRequest) private static final cloud.prefab.domain.Prefab.LimitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LimitRequest(); } public static cloud.prefab.domain.Prefab.LimitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LimitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContextSetOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ContextSet) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.Context contexts = 1; */ java.util.List getContextsList(); /** * repeated .prefab.Context contexts = 1; */ cloud.prefab.domain.Prefab.Context getContexts(int index); /** * repeated .prefab.Context contexts = 1; */ int getContextsCount(); /** * repeated .prefab.Context contexts = 1; */ java.util.List getContextsOrBuilderList(); /** * repeated .prefab.Context contexts = 1; */ cloud.prefab.domain.Prefab.ContextOrBuilder getContextsOrBuilder( int index); } /** *
   * if the same Context type exists, last one wins
   * 
* * Protobuf type {@code prefab.ContextSet} */ public static final class ContextSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ContextSet) ContextSetOrBuilder { private static final long serialVersionUID = 0L; // Use ContextSet.newBuilder() to construct. private ContextSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContextSet() { contexts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContextSet(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ContextSet.class, cloud.prefab.domain.Prefab.ContextSet.Builder.class); } public static final int CONTEXTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List contexts_; /** * repeated .prefab.Context contexts = 1; */ @java.lang.Override public java.util.List getContextsList() { return contexts_; } /** * repeated .prefab.Context contexts = 1; */ @java.lang.Override public java.util.List getContextsOrBuilderList() { return contexts_; } /** * repeated .prefab.Context contexts = 1; */ @java.lang.Override public int getContextsCount() { return contexts_.size(); } /** * repeated .prefab.Context contexts = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.Context getContexts(int index) { return contexts_.get(index); } /** * repeated .prefab.Context contexts = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextOrBuilder getContextsOrBuilder( int index) { return contexts_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < contexts_.size(); i++) { output.writeMessage(1, contexts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < contexts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, contexts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ContextSet)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ContextSet other = (cloud.prefab.domain.Prefab.ContextSet) obj; if (!getContextsList() .equals(other.getContextsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getContextsCount() > 0) { hash = (37 * hash) + CONTEXTS_FIELD_NUMBER; hash = (53 * hash) + getContextsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.ContextSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * if the same Context type exists, last one wins
     * 
* * Protobuf type {@code prefab.ContextSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ContextSet) cloud.prefab.domain.Prefab.ContextSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ContextSet.class, cloud.prefab.domain.Prefab.ContextSet.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ContextSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (contextsBuilder_ == null) { contexts_ = java.util.Collections.emptyList(); } else { contexts_ = null; contextsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextSet_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet build() { cloud.prefab.domain.Prefab.ContextSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet buildPartial() { cloud.prefab.domain.Prefab.ContextSet result = new cloud.prefab.domain.Prefab.ContextSet(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ContextSet result) { if (contextsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { contexts_ = java.util.Collections.unmodifiableList(contexts_); bitField0_ = (bitField0_ & ~0x00000001); } result.contexts_ = contexts_; } else { result.contexts_ = contextsBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ContextSet result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ContextSet) { return mergeFrom((cloud.prefab.domain.Prefab.ContextSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ContextSet other) { if (other == cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) return this; if (contextsBuilder_ == null) { if (!other.contexts_.isEmpty()) { if (contexts_.isEmpty()) { contexts_ = other.contexts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContextsIsMutable(); contexts_.addAll(other.contexts_); } onChanged(); } } else { if (!other.contexts_.isEmpty()) { if (contextsBuilder_.isEmpty()) { contextsBuilder_.dispose(); contextsBuilder_ = null; contexts_ = other.contexts_; bitField0_ = (bitField0_ & ~0x00000001); contextsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContextsFieldBuilder() : null; } else { contextsBuilder_.addAllMessages(other.contexts_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.Context m = input.readMessage( cloud.prefab.domain.Prefab.Context.parser(), extensionRegistry); if (contextsBuilder_ == null) { ensureContextsIsMutable(); contexts_.add(m); } else { contextsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List contexts_ = java.util.Collections.emptyList(); private void ensureContextsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contexts_ = new java.util.ArrayList(contexts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Context, cloud.prefab.domain.Prefab.Context.Builder, cloud.prefab.domain.Prefab.ContextOrBuilder> contextsBuilder_; /** * repeated .prefab.Context contexts = 1; */ public java.util.List getContextsList() { if (contextsBuilder_ == null) { return java.util.Collections.unmodifiableList(contexts_); } else { return contextsBuilder_.getMessageList(); } } /** * repeated .prefab.Context contexts = 1; */ public int getContextsCount() { if (contextsBuilder_ == null) { return contexts_.size(); } else { return contextsBuilder_.getCount(); } } /** * repeated .prefab.Context contexts = 1; */ public cloud.prefab.domain.Prefab.Context getContexts(int index) { if (contextsBuilder_ == null) { return contexts_.get(index); } else { return contextsBuilder_.getMessage(index); } } /** * repeated .prefab.Context contexts = 1; */ public Builder setContexts( int index, cloud.prefab.domain.Prefab.Context value) { if (contextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContextsIsMutable(); contexts_.set(index, value); onChanged(); } else { contextsBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder setContexts( int index, cloud.prefab.domain.Prefab.Context.Builder builderForValue) { if (contextsBuilder_ == null) { ensureContextsIsMutable(); contexts_.set(index, builderForValue.build()); onChanged(); } else { contextsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder addContexts(cloud.prefab.domain.Prefab.Context value) { if (contextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContextsIsMutable(); contexts_.add(value); onChanged(); } else { contextsBuilder_.addMessage(value); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder addContexts( int index, cloud.prefab.domain.Prefab.Context value) { if (contextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContextsIsMutable(); contexts_.add(index, value); onChanged(); } else { contextsBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder addContexts( cloud.prefab.domain.Prefab.Context.Builder builderForValue) { if (contextsBuilder_ == null) { ensureContextsIsMutable(); contexts_.add(builderForValue.build()); onChanged(); } else { contextsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder addContexts( int index, cloud.prefab.domain.Prefab.Context.Builder builderForValue) { if (contextsBuilder_ == null) { ensureContextsIsMutable(); contexts_.add(index, builderForValue.build()); onChanged(); } else { contextsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder addAllContexts( java.lang.Iterable values) { if (contextsBuilder_ == null) { ensureContextsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contexts_); onChanged(); } else { contextsBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder clearContexts() { if (contextsBuilder_ == null) { contexts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { contextsBuilder_.clear(); } return this; } /** * repeated .prefab.Context contexts = 1; */ public Builder removeContexts(int index) { if (contextsBuilder_ == null) { ensureContextsIsMutable(); contexts_.remove(index); onChanged(); } else { contextsBuilder_.remove(index); } return this; } /** * repeated .prefab.Context contexts = 1; */ public cloud.prefab.domain.Prefab.Context.Builder getContextsBuilder( int index) { return getContextsFieldBuilder().getBuilder(index); } /** * repeated .prefab.Context contexts = 1; */ public cloud.prefab.domain.Prefab.ContextOrBuilder getContextsOrBuilder( int index) { if (contextsBuilder_ == null) { return contexts_.get(index); } else { return contextsBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.Context contexts = 1; */ public java.util.List getContextsOrBuilderList() { if (contextsBuilder_ != null) { return contextsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(contexts_); } } /** * repeated .prefab.Context contexts = 1; */ public cloud.prefab.domain.Prefab.Context.Builder addContextsBuilder() { return getContextsFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.Context.getDefaultInstance()); } /** * repeated .prefab.Context contexts = 1; */ public cloud.prefab.domain.Prefab.Context.Builder addContextsBuilder( int index) { return getContextsFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.Context.getDefaultInstance()); } /** * repeated .prefab.Context contexts = 1; */ public java.util.List getContextsBuilderList() { return getContextsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Context, cloud.prefab.domain.Prefab.Context.Builder, cloud.prefab.domain.Prefab.ContextOrBuilder> getContextsFieldBuilder() { if (contextsBuilder_ == null) { contextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Context, cloud.prefab.domain.Prefab.Context.Builder, cloud.prefab.domain.Prefab.ContextOrBuilder>( contexts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); contexts_ = null; } return contextsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ContextSet) } // @@protoc_insertion_point(class_scope:prefab.ContextSet) private static final cloud.prefab.domain.Prefab.ContextSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ContextSet(); } public static cloud.prefab.domain.Prefab.ContextSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContextSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContextOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Context) com.google.protobuf.MessageOrBuilder { /** * optional string type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * optional string type = 1; * @return The type. */ java.lang.String getType(); /** * optional string type = 1; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * map<string, .prefab.ConfigValue> values = 2; */ int getValuesCount(); /** * map<string, .prefab.ConfigValue> values = 2; */ boolean containsValues( java.lang.String key); /** * Use {@link #getValuesMap()} instead. */ @java.lang.Deprecated java.util.Map getValues(); /** * map<string, .prefab.ConfigValue> values = 2; */ java.util.Map getValuesMap(); /** * map<string, .prefab.ConfigValue> values = 2; */ /* nullable */ cloud.prefab.domain.Prefab.ConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ConfigValue defaultValue); /** * map<string, .prefab.ConfigValue> values = 2; */ cloud.prefab.domain.Prefab.ConfigValue getValuesOrThrow( java.lang.String key); } /** * Protobuf type {@code prefab.Context} */ public static final class Context extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Context) ContextOrBuilder { private static final long serialVersionUID = 0L; // Use Context.newBuilder() to construct. private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Context() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Context(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Context_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Context_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Context.class, cloud.prefab.domain.Prefab.Context.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * optional string type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string type = 1; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** * optional string type = 1; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 2; private static final class ValuesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( cloud.prefab.domain.Prefab.internal_static_prefab_Context_ValuesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public /* nullable */ cloud.prefab.domain.Prefab.ConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetValues(), ValuesDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } for (java.util.Map.Entry entry : internalGetValues().getMap().entrySet()) { com.google.protobuf.MapEntry values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, values__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Context)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Context other = (cloud.prefab.domain.Prefab.Context) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!internalGetValues().equals( other.internalGetValues())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (!internalGetValues().getMap().isEmpty()) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetValues().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Context parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Context parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Context parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Context parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Context parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Context parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Context parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Context parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Context parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Context parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Context parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Context parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Context prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Context} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Context) cloud.prefab.domain.Prefab.ContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Context_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableValues(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Context_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Context.class, cloud.prefab.domain.Prefab.Context.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Context.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = ""; internalGetMutableValues().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Context_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Context getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Context.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Context build() { cloud.prefab.domain.Prefab.Context result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Context buildPartial() { cloud.prefab.domain.Prefab.Context result = new cloud.prefab.domain.Prefab.Context(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.Context result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.values_ = internalGetValues(); result.values_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Context) { return mergeFrom((cloud.prefab.domain.Prefab.Context)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Context other) { if (other == cloud.prefab.domain.Prefab.Context.getDefaultInstance()) return this; if (other.hasType()) { type_ = other.type_; bitField0_ |= 0x00000001; onChanged(); } internalGetMutableValues().mergeFrom( other.internalGetValues()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry values__ = input.readMessage( ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableValues().getMutableMap().put( values__.getKey(), values__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * optional string type = 1; * @return Whether the type field is set. */ public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string type = 1; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string type = 1; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string type = 1; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, cloud.prefab.domain.Prefab.ConfigValue> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } private com.google.protobuf.MapField internalGetMutableValues() { if (values_ == null) { values_ = com.google.protobuf.MapField.newMapField( ValuesDefaultEntryHolder.defaultEntry); } if (!values_.isMutable()) { values_ = values_.copy(); } bitField0_ |= 0x00000002; onChanged(); return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public /* nullable */ cloud.prefab.domain.Prefab.ConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ cloud.prefab.domain.Prefab.ConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .prefab.ConfigValue> values = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearValues() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableValues().getMutableMap() .clear(); return this; } /** * map<string, .prefab.ConfigValue> values = 2; */ public Builder removeValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableValues().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableValues() { bitField0_ |= 0x00000002; return internalGetMutableValues().getMutableMap(); } /** * map<string, .prefab.ConfigValue> values = 2; */ public Builder putValues( java.lang.String key, cloud.prefab.domain.Prefab.ConfigValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableValues().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<string, .prefab.ConfigValue> values = 2; */ public Builder putAllValues( java.util.Map values) { internalGetMutableValues().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Context) } // @@protoc_insertion_point(class_scope:prefab.Context) private static final cloud.prefab.domain.Prefab.Context DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Context(); } public static cloud.prefab.domain.Prefab.Context getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Context parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.Context getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IdentityOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.Identity) com.google.protobuf.MessageOrBuilder { /** * optional string lookup = 1; * @return Whether the lookup field is set. */ boolean hasLookup(); /** * optional string lookup = 1; * @return The lookup. */ java.lang.String getLookup(); /** * optional string lookup = 1; * @return The bytes for lookup. */ com.google.protobuf.ByteString getLookupBytes(); /** * map<string, string> attributes = 2; */ int getAttributesCount(); /** * map<string, string> attributes = 2; */ boolean containsAttributes( java.lang.String key); /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); /** * map<string, string> attributes = 2; */ java.util.Map getAttributesMap(); /** * map<string, string> attributes = 2; */ /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> attributes = 2; */ java.lang.String getAttributesOrThrow( java.lang.String key); } /** * Protobuf type {@code prefab.Identity} */ public static final class Identity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.Identity) IdentityOrBuilder { private static final long serialVersionUID = 0L; // Use Identity.newBuilder() to construct. private Identity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Identity() { lookup_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Identity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Identity.class, cloud.prefab.domain.Prefab.Identity.Builder.class); } private int bitField0_; public static final int LOOKUP_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object lookup_ = ""; /** * optional string lookup = 1; * @return Whether the lookup field is set. */ @java.lang.Override public boolean hasLookup() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string lookup = 1; * @return The lookup. */ @java.lang.Override public java.lang.String getLookup() { java.lang.Object ref = lookup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lookup_ = s; return s; } } /** * optional string lookup = 1; * @return The bytes for lookup. */ @java.lang.Override public com.google.protobuf.ByteString getLookupBytes() { java.lang.Object ref = lookup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTES_FIELD_NUMBER = 2; private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( cloud.prefab.domain.Prefab.internal_static_prefab_Identity_AttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lookup_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lookup_); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, attributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.Identity)) { return super.equals(obj); } cloud.prefab.domain.Prefab.Identity other = (cloud.prefab.domain.Prefab.Identity) obj; if (hasLookup() != other.hasLookup()) return false; if (hasLookup()) { if (!getLookup() .equals(other.getLookup())) return false; } if (!internalGetAttributes().equals( other.internalGetAttributes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLookup()) { hash = (37 * hash) + LOOKUP_FIELD_NUMBER; hash = (53 * hash) + getLookup().hashCode(); } if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.Identity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Identity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Identity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Identity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Identity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.Identity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.Identity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Identity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Identity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Identity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cloud.prefab.domain.Prefab.Identity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.Identity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cloud.prefab.domain.Prefab.Identity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code prefab.Identity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.Identity) cloud.prefab.domain.Prefab.IdentityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.Identity.class, cloud.prefab.domain.Prefab.Identity.Builder.class); } // Construct using cloud.prefab.domain.Prefab.Identity.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; lookup_ = ""; internalGetMutableAttributes().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_Identity_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.Identity getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.Identity.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.Identity build() { cloud.prefab.domain.Prefab.Identity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.Identity buildPartial() { cloud.prefab.domain.Prefab.Identity result = new cloud.prefab.domain.Prefab.Identity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.Identity result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.lookup_ = lookup_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.Identity) { return mergeFrom((cloud.prefab.domain.Prefab.Identity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.Identity other) { if (other == cloud.prefab.domain.Prefab.Identity.getDefaultInstance()) return this; if (other.hasLookup()) { lookup_ = other.lookup_; bitField0_ |= 0x00000001; onChanged(); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { lookup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAttributes().getMutableMap().put( attributes__.getKey(), attributes__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object lookup_ = ""; /** * optional string lookup = 1; * @return Whether the lookup field is set. */ public boolean hasLookup() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string lookup = 1; * @return The lookup. */ public java.lang.String getLookup() { java.lang.Object ref = lookup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lookup_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string lookup = 1; * @return The bytes for lookup. */ public com.google.protobuf.ByteString getLookupBytes() { java.lang.Object ref = lookup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lookup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string lookup = 1; * @param value The lookup to set. * @return This builder for chaining. */ public Builder setLookup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lookup_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional string lookup = 1; * @return This builder for chaining. */ public Builder clearLookup() { lookup_ = getDefaultInstance().getLookup(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * optional string lookup = 1; * @param value The bytes for lookup to set. * @return This builder for chaining. */ public Builder setLookupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lookup_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } bitField0_ |= 0x00000002; onChanged(); return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** * map<string, string> attributes = 2; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> attributes = 2; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** * map<string, string> attributes = 2; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } /** * map<string, string> attributes = 2; */ public Builder putAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<string, string> attributes = 2; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.Identity) } // @@protoc_insertion_point(class_scope:prefab.Identity) private static final cloud.prefab.domain.Prefab.Identity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.Identity(); } public static cloud.prefab.domain.Prefab.Identity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Identity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser 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 ConfigEvaluationMetaDataOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigEvaluationMetaData) com.google.protobuf.MessageOrBuilder { /** * optional int64 config_row_index = 1; * @return Whether the configRowIndex field is set. */ boolean hasConfigRowIndex(); /** * optional int64 config_row_index = 1; * @return The configRowIndex. */ long getConfigRowIndex(); /** * optional int64 conditional_value_index = 2; * @return Whether the conditionalValueIndex field is set. */ boolean hasConditionalValueIndex(); /** * optional int64 conditional_value_index = 2; * @return The conditionalValueIndex. */ long getConditionalValueIndex(); /** * optional int64 weighted_value_index = 3; * @return Whether the weightedValueIndex field is set. */ boolean hasWeightedValueIndex(); /** * optional int64 weighted_value_index = 3; * @return The weightedValueIndex. */ long getWeightedValueIndex(); /** * optional .prefab.ConfigType type = 4; * @return Whether the type field is set. */ boolean hasType(); /** * optional .prefab.ConfigType type = 4; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * optional .prefab.ConfigType type = 4; * @return The type. */ cloud.prefab.domain.Prefab.ConfigType getType(); /** * optional int64 id = 5; * @return Whether the id field is set. */ boolean hasId(); /** * optional int64 id = 5; * @return The id. */ long getId(); /** * optional .prefab.Config.ValueType value_type = 6; * @return Whether the valueType field is set. */ boolean hasValueType(); /** * optional .prefab.Config.ValueType value_type = 6; * @return The enum numeric value on the wire for valueType. */ int getValueTypeValue(); /** * optional .prefab.Config.ValueType value_type = 6; * @return The valueType. */ cloud.prefab.domain.Prefab.Config.ValueType getValueType(); } /** * Protobuf type {@code prefab.ConfigEvaluationMetaData} */ public static final class ConfigEvaluationMetaData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigEvaluationMetaData) ConfigEvaluationMetaDataOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigEvaluationMetaData.newBuilder() to construct. private ConfigEvaluationMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigEvaluationMetaData() { type_ = 0; valueType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigEvaluationMetaData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.class, cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder.class); } private int bitField0_; public static final int CONFIG_ROW_INDEX_FIELD_NUMBER = 1; private long configRowIndex_ = 0L; /** * optional int64 config_row_index = 1; * @return Whether the configRowIndex field is set. */ @java.lang.Override public boolean hasConfigRowIndex() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 config_row_index = 1; * @return The configRowIndex. */ @java.lang.Override public long getConfigRowIndex() { return configRowIndex_; } public static final int CONDITIONAL_VALUE_INDEX_FIELD_NUMBER = 2; private long conditionalValueIndex_ = 0L; /** * optional int64 conditional_value_index = 2; * @return Whether the conditionalValueIndex field is set. */ @java.lang.Override public boolean hasConditionalValueIndex() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 conditional_value_index = 2; * @return The conditionalValueIndex. */ @java.lang.Override public long getConditionalValueIndex() { return conditionalValueIndex_; } public static final int WEIGHTED_VALUE_INDEX_FIELD_NUMBER = 3; private long weightedValueIndex_ = 0L; /** * optional int64 weighted_value_index = 3; * @return Whether the weightedValueIndex field is set. */ @java.lang.Override public boolean hasWeightedValueIndex() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 weighted_value_index = 3; * @return The weightedValueIndex. */ @java.lang.Override public long getWeightedValueIndex() { return weightedValueIndex_; } public static final int TYPE_FIELD_NUMBER = 4; private int type_ = 0; /** * optional .prefab.ConfigType type = 4; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .prefab.ConfigType type = 4; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * optional .prefab.ConfigType type = 4; * @return The type. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getType() { cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(type_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } public static final int ID_FIELD_NUMBER = 5; private long id_ = 0L; /** * optional int64 id = 5; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int64 id = 5; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int VALUE_TYPE_FIELD_NUMBER = 6; private int valueType_ = 0; /** * optional .prefab.Config.ValueType value_type = 6; * @return Whether the valueType field is set. */ @java.lang.Override public boolean hasValueType() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .prefab.Config.ValueType value_type = 6; * @return The enum numeric value on the wire for valueType. */ @java.lang.Override public int getValueTypeValue() { return valueType_; } /** * optional .prefab.Config.ValueType value_type = 6; * @return The valueType. */ @java.lang.Override public cloud.prefab.domain.Prefab.Config.ValueType getValueType() { cloud.prefab.domain.Prefab.Config.ValueType result = cloud.prefab.domain.Prefab.Config.ValueType.forNumber(valueType_); return result == null ? cloud.prefab.domain.Prefab.Config.ValueType.UNRECOGNIZED : result; } 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, configRowIndex_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, conditionalValueIndex_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, weightedValueIndex_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, type_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(5, id_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(6, valueType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, configRowIndex_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, conditionalValueIndex_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, weightedValueIndex_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, id_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, valueType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigEvaluationMetaData)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigEvaluationMetaData other = (cloud.prefab.domain.Prefab.ConfigEvaluationMetaData) obj; if (hasConfigRowIndex() != other.hasConfigRowIndex()) return false; if (hasConfigRowIndex()) { if (getConfigRowIndex() != other.getConfigRowIndex()) return false; } if (hasConditionalValueIndex() != other.hasConditionalValueIndex()) return false; if (hasConditionalValueIndex()) { if (getConditionalValueIndex() != other.getConditionalValueIndex()) return false; } if (hasWeightedValueIndex() != other.hasWeightedValueIndex()) return false; if (hasWeightedValueIndex()) { if (getWeightedValueIndex() != other.getWeightedValueIndex()) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasValueType() != other.hasValueType()) return false; if (hasValueType()) { if (valueType_ != other.valueType_) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConfigRowIndex()) { hash = (37 * hash) + CONFIG_ROW_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConfigRowIndex()); } if (hasConditionalValueIndex()) { hash = (37 * hash) + CONDITIONAL_VALUE_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConditionalValueIndex()); } if (hasWeightedValueIndex()) { hash = (37 * hash) + WEIGHTED_VALUE_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWeightedValueIndex()); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); } if (hasValueType()) { hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; hash = (53 * hash) + valueType_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData 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.ConfigEvaluationMetaData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData 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.ConfigEvaluationMetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData 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.ConfigEvaluationMetaData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData 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.ConfigEvaluationMetaData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData 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.ConfigEvaluationMetaData 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.ConfigEvaluationMetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigEvaluationMetaData) cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.class, cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; configRowIndex_ = 0L; conditionalValueIndex_ = 0L; weightedValueIndex_ = 0L; type_ = 0; id_ = 0L; valueType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationMetaData_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData build() { cloud.prefab.domain.Prefab.ConfigEvaluationMetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData buildPartial() { cloud.prefab.domain.Prefab.ConfigEvaluationMetaData result = new cloud.prefab.domain.Prefab.ConfigEvaluationMetaData(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigEvaluationMetaData result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.configRowIndex_ = configRowIndex_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.conditionalValueIndex_ = conditionalValueIndex_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.weightedValueIndex_ = weightedValueIndex_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.valueType_ = valueType_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConfigEvaluationMetaData) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigEvaluationMetaData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigEvaluationMetaData other) { if (other == cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance()) return this; if (other.hasConfigRowIndex()) { setConfigRowIndex(other.getConfigRowIndex()); } if (other.hasConditionalValueIndex()) { setConditionalValueIndex(other.getConditionalValueIndex()); } if (other.hasWeightedValueIndex()) { setWeightedValueIndex(other.getWeightedValueIndex()); } if (other.hasType()) { setType(other.getType()); } if (other.hasId()) { setId(other.getId()); } if (other.hasValueType()) { setValueType(other.getValueType()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { configRowIndex_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { conditionalValueIndex_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { weightedValueIndex_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { type_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { id_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { valueType_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long configRowIndex_ ; /** * optional int64 config_row_index = 1; * @return Whether the configRowIndex field is set. */ @java.lang.Override public boolean hasConfigRowIndex() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 config_row_index = 1; * @return The configRowIndex. */ @java.lang.Override public long getConfigRowIndex() { return configRowIndex_; } /** * optional int64 config_row_index = 1; * @param value The configRowIndex to set. * @return This builder for chaining. */ public Builder setConfigRowIndex(long value) { configRowIndex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional int64 config_row_index = 1; * @return This builder for chaining. */ public Builder clearConfigRowIndex() { bitField0_ = (bitField0_ & ~0x00000001); configRowIndex_ = 0L; onChanged(); return this; } private long conditionalValueIndex_ ; /** * optional int64 conditional_value_index = 2; * @return Whether the conditionalValueIndex field is set. */ @java.lang.Override public boolean hasConditionalValueIndex() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 conditional_value_index = 2; * @return The conditionalValueIndex. */ @java.lang.Override public long getConditionalValueIndex() { return conditionalValueIndex_; } /** * optional int64 conditional_value_index = 2; * @param value The conditionalValueIndex to set. * @return This builder for chaining. */ public Builder setConditionalValueIndex(long value) { conditionalValueIndex_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int64 conditional_value_index = 2; * @return This builder for chaining. */ public Builder clearConditionalValueIndex() { bitField0_ = (bitField0_ & ~0x00000002); conditionalValueIndex_ = 0L; onChanged(); return this; } private long weightedValueIndex_ ; /** * optional int64 weighted_value_index = 3; * @return Whether the weightedValueIndex field is set. */ @java.lang.Override public boolean hasWeightedValueIndex() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 weighted_value_index = 3; * @return The weightedValueIndex. */ @java.lang.Override public long getWeightedValueIndex() { return weightedValueIndex_; } /** * optional int64 weighted_value_index = 3; * @param value The weightedValueIndex to set. * @return This builder for chaining. */ public Builder setWeightedValueIndex(long value) { weightedValueIndex_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional int64 weighted_value_index = 3; * @return This builder for chaining. */ public Builder clearWeightedValueIndex() { bitField0_ = (bitField0_ & ~0x00000004); weightedValueIndex_ = 0L; onChanged(); return this; } private int type_ = 0; /** * optional .prefab.ConfigType type = 4; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .prefab.ConfigType type = 4; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * optional .prefab.ConfigType type = 4; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .prefab.ConfigType type = 4; * @return The type. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getType() { cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(type_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } /** * optional .prefab.ConfigType type = 4; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(cloud.prefab.domain.Prefab.ConfigType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; } /** * optional .prefab.ConfigType type = 4; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; } private long id_ ; /** * optional int64 id = 5; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int64 id = 5; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** * optional int64 id = 5; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional int64 id = 5; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000010); id_ = 0L; onChanged(); return this; } private int valueType_ = 0; /** * optional .prefab.Config.ValueType value_type = 6; * @return Whether the valueType field is set. */ @java.lang.Override public boolean hasValueType() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .prefab.Config.ValueType value_type = 6; * @return The enum numeric value on the wire for valueType. */ @java.lang.Override public int getValueTypeValue() { return valueType_; } /** * optional .prefab.Config.ValueType value_type = 6; * @param value The enum numeric value on the wire for valueType to set. * @return This builder for chaining. */ public Builder setValueTypeValue(int value) { valueType_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional .prefab.Config.ValueType value_type = 6; * @return The valueType. */ @java.lang.Override public cloud.prefab.domain.Prefab.Config.ValueType getValueType() { cloud.prefab.domain.Prefab.Config.ValueType result = cloud.prefab.domain.Prefab.Config.ValueType.forNumber(valueType_); return result == null ? cloud.prefab.domain.Prefab.Config.ValueType.UNRECOGNIZED : result; } /** * optional .prefab.Config.ValueType value_type = 6; * @param value The valueType to set. * @return This builder for chaining. */ public Builder setValueType(cloud.prefab.domain.Prefab.Config.ValueType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; valueType_ = value.getNumber(); onChanged(); return this; } /** * optional .prefab.Config.ValueType value_type = 6; * @return This builder for chaining. */ public Builder clearValueType() { bitField0_ = (bitField0_ & ~0x00000020); valueType_ = 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.ConfigEvaluationMetaData) } // @@protoc_insertion_point(class_scope:prefab.ConfigEvaluationMetaData) private static final cloud.prefab.domain.Prefab.ConfigEvaluationMetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigEvaluationMetaData(); } public static cloud.prefab.domain.Prefab.ConfigEvaluationMetaData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigEvaluationMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientConfigValueOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ClientConfigValue) 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(); /** * double double = 3; * @return Whether the double field is set. */ boolean hasDouble(); /** * double double = 3; * @return The double. */ double getDouble(); /** * bool bool = 4; * @return Whether the bool field is set. */ boolean hasBool(); /** * bool bool = 4; * @return The bool. */ boolean getBool(); /** * .prefab.LogLevel log_level = 5; * @return Whether the logLevel field is set. */ boolean hasLogLevel(); /** * .prefab.LogLevel log_level = 5; * @return The enum numeric value on the wire for logLevel. */ int getLogLevelValue(); /** * .prefab.LogLevel log_level = 5; * @return The logLevel. */ cloud.prefab.domain.Prefab.LogLevel getLogLevel(); /** * .prefab.StringList string_list = 7; * @return Whether the stringList field is set. */ boolean hasStringList(); /** * .prefab.StringList string_list = 7; * @return The stringList. */ cloud.prefab.domain.Prefab.StringList getStringList(); /** * .prefab.StringList string_list = 7; */ cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder(); /** * .prefab.IntRange int_range = 8; * @return Whether the intRange field is set. */ boolean hasIntRange(); /** * .prefab.IntRange int_range = 8; * @return The intRange. */ cloud.prefab.domain.Prefab.IntRange getIntRange(); /** * .prefab.IntRange int_range = 8; */ cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder(); /** * .prefab.ClientDuration duration = 9; * @return Whether the duration field is set. */ boolean hasDuration(); /** * .prefab.ClientDuration duration = 9; * @return The duration. */ cloud.prefab.domain.Prefab.ClientDuration getDuration(); /** * .prefab.ClientDuration duration = 9; */ cloud.prefab.domain.Prefab.ClientDurationOrBuilder getDurationOrBuilder(); /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; * @return Whether the configEvaluationMetadata field is set. */ boolean hasConfigEvaluationMetadata(); /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; * @return The configEvaluationMetadata. */ cloud.prefab.domain.Prefab.ConfigEvaluationMetaData getConfigEvaluationMetadata(); /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder getConfigEvaluationMetadataOrBuilder(); cloud.prefab.domain.Prefab.ClientConfigValue.TypeCase getTypeCase(); } /** * 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() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientConfigValue(); } 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_; private int typeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object type_; public enum TypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INT(1), STRING(2), DOUBLE(3), BOOL(4), LOG_LEVEL(5), STRING_LIST(7), INT_RANGE(8), DURATION(9), 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 DOUBLE; case 4: return BOOL; case 5: return LOG_LEVEL; case 7: return STRING_LIST; case 8: return INT_RANGE; case 9: return DURATION; 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 DOUBLE_FIELD_NUMBER = 3; /** * double double = 3; * @return Whether the double field is set. */ @java.lang.Override public boolean hasDouble() { return typeCase_ == 3; } /** * double double = 3; * @return The double. */ @java.lang.Override public double getDouble() { if (typeCase_ == 3) { return (java.lang.Double) type_; } return 0D; } public static final int BOOL_FIELD_NUMBER = 4; /** * bool bool = 4; * @return Whether the bool field is set. */ @java.lang.Override public boolean hasBool() { return typeCase_ == 4; } /** * bool bool = 4; * @return The bool. */ @java.lang.Override public boolean getBool() { if (typeCase_ == 4) { return (java.lang.Boolean) type_; } return false; } public static final int LOG_LEVEL_FIELD_NUMBER = 5; /** * .prefab.LogLevel log_level = 5; * @return Whether the logLevel field is set. */ public boolean hasLogLevel() { return typeCase_ == 5; } /** * .prefab.LogLevel log_level = 5; * @return The enum numeric value on the wire for logLevel. */ public int getLogLevelValue() { if (typeCase_ == 5) { return (java.lang.Integer) type_; } return 0; } /** * .prefab.LogLevel log_level = 5; * @return The logLevel. */ public cloud.prefab.domain.Prefab.LogLevel getLogLevel() { if (typeCase_ == 5) { cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.forNumber( (java.lang.Integer) type_); return result == null ? cloud.prefab.domain.Prefab.LogLevel.UNRECOGNIZED : result; } return cloud.prefab.domain.Prefab.LogLevel.NOT_SET_LOG_LEVEL; } public static final int STRING_LIST_FIELD_NUMBER = 7; /** * .prefab.StringList string_list = 7; * @return Whether the stringList field is set. */ @java.lang.Override public boolean hasStringList() { return typeCase_ == 7; } /** * .prefab.StringList string_list = 7; * @return The stringList. */ @java.lang.Override public cloud.prefab.domain.Prefab.StringList getStringList() { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } /** * .prefab.StringList string_list = 7; */ @java.lang.Override public cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder() { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } public static final int INT_RANGE_FIELD_NUMBER = 8; /** * .prefab.IntRange int_range = 8; * @return Whether the intRange field is set. */ @java.lang.Override public boolean hasIntRange() { return typeCase_ == 8; } /** * .prefab.IntRange int_range = 8; * @return The intRange. */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRange getIntRange() { if (typeCase_ == 8) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } /** * .prefab.IntRange int_range = 8; */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder() { if (typeCase_ == 8) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } public static final int DURATION_FIELD_NUMBER = 9; /** * .prefab.ClientDuration duration = 9; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return typeCase_ == 9; } /** * .prefab.ClientDuration duration = 9; * @return The duration. */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientDuration getDuration() { if (typeCase_ == 9) { return (cloud.prefab.domain.Prefab.ClientDuration) type_; } return cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } /** * .prefab.ClientDuration duration = 9; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientDurationOrBuilder getDurationOrBuilder() { if (typeCase_ == 9) { return (cloud.prefab.domain.Prefab.ClientDuration) type_; } return cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } public static final int CONFIG_EVALUATION_METADATA_FIELD_NUMBER = 6; private cloud.prefab.domain.Prefab.ConfigEvaluationMetaData configEvaluationMetadata_; /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; * @return Whether the configEvaluationMetadata field is set. */ @java.lang.Override public boolean hasConfigEvaluationMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; * @return The configEvaluationMetadata. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData getConfigEvaluationMetadata() { return configEvaluationMetadata_ == null ? cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance() : configEvaluationMetadata_; } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder getConfigEvaluationMetadataOrBuilder() { return configEvaluationMetadata_ == null ? cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance() : configEvaluationMetadata_; } 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.writeDouble( 3, (double)((java.lang.Double) type_)); } if (typeCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) type_)); } if (typeCase_ == 5) { output.writeEnum(5, ((java.lang.Integer) type_)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getConfigEvaluationMetadata()); } if (typeCase_ == 7) { output.writeMessage(7, (cloud.prefab.domain.Prefab.StringList) type_); } if (typeCase_ == 8) { output.writeMessage(8, (cloud.prefab.domain.Prefab.IntRange) type_); } if (typeCase_ == 9) { output.writeMessage(9, (cloud.prefab.domain.Prefab.ClientDuration) type_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (typeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) type_)); } if (typeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } if (typeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 3, (double)((java.lang.Double) type_)); } if (typeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 4, (boolean)((java.lang.Boolean) type_)); } if (typeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, ((java.lang.Integer) type_)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getConfigEvaluationMetadata()); } if (typeCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (cloud.prefab.domain.Prefab.StringList) type_); } if (typeCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (cloud.prefab.domain.Prefab.IntRange) type_); } if (typeCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (cloud.prefab.domain.Prefab.ClientDuration) type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ClientConfigValue)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ClientConfigValue other = (cloud.prefab.domain.Prefab.ClientConfigValue) obj; if (hasConfigEvaluationMetadata() != other.hasConfigEvaluationMetadata()) return false; if (hasConfigEvaluationMetadata()) { if (!getConfigEvaluationMetadata() .equals(other.getConfigEvaluationMetadata())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: if (getInt() != other.getInt()) return false; break; case 2: if (!getString() .equals(other.getString())) return false; break; case 3: if (java.lang.Double.doubleToLongBits(getDouble()) != java.lang.Double.doubleToLongBits( other.getDouble())) return false; break; case 4: if (getBool() != other.getBool()) return false; break; case 5: if (getLogLevelValue() != other.getLogLevelValue()) return false; break; case 7: if (!getStringList() .equals(other.getStringList())) return false; break; case 8: if (!getIntRange() .equals(other.getIntRange())) return false; break; case 9: if (!getDuration() .equals(other.getDuration())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConfigEvaluationMetadata()) { hash = (37 * hash) + CONFIG_EVALUATION_METADATA_FIELD_NUMBER; hash = (53 * hash) + getConfigEvaluationMetadata().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) + DOUBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDouble())); break; case 4: hash = (37 * hash) + BOOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBool()); break; case 5: hash = (37 * hash) + LOG_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getLogLevelValue(); break; case 7: hash = (37 * hash) + STRING_LIST_FIELD_NUMBER; hash = (53 * hash) + getStringList().hashCode(); break; case 8: hash = (37 * hash) + INT_RANGE_FIELD_NUMBER; hash = (53 * hash) + getIntRange().hashCode(); break; case 9: hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().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) { getConfigEvaluationMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (stringListBuilder_ != null) { stringListBuilder_.clear(); } if (intRangeBuilder_ != null) { intRangeBuilder_.clear(); } if (durationBuilder_ != null) { durationBuilder_.clear(); } configEvaluationMetadata_ = null; if (configEvaluationMetadataBuilder_ != null) { configEvaluationMetadataBuilder_.dispose(); configEvaluationMetadataBuilder_ = null; } typeCase_ = 0; type_ = null; 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); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ClientConfigValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { result.configEvaluationMetadata_ = configEvaluationMetadataBuilder_ == null ? configEvaluationMetadata_ : configEvaluationMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(cloud.prefab.domain.Prefab.ClientConfigValue result) { result.typeCase_ = typeCase_; result.type_ = this.type_; if (typeCase_ == 7 && stringListBuilder_ != null) { result.type_ = stringListBuilder_.build(); } if (typeCase_ == 8 && intRangeBuilder_ != null) { result.type_ = intRangeBuilder_.build(); } if (typeCase_ == 9 && durationBuilder_ != null) { result.type_ = durationBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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.hasConfigEvaluationMetadata()) { mergeConfigEvaluationMetadata(other.getConfigEvaluationMetadata()); } switch (other.getTypeCase()) { case INT: { setInt(other.getInt()); break; } case STRING: { typeCase_ = 2; type_ = other.type_; onChanged(); break; } case DOUBLE: { setDouble(other.getDouble()); break; } case BOOL: { setBool(other.getBool()); break; } case LOG_LEVEL: { setLogLevelValue(other.getLogLevelValue()); break; } case STRING_LIST: { mergeStringList(other.getStringList()); break; } case INT_RANGE: { mergeIntRange(other.getIntRange()); break; } case DURATION: { mergeDuration(other.getDuration()); break; } case TYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readInt64(); typeCase_ = 1; break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); typeCase_ = 2; type_ = s; break; } // case 18 case 25: { type_ = input.readDouble(); typeCase_ = 3; break; } // case 25 case 32: { type_ = input.readBool(); typeCase_ = 4; break; } // case 32 case 40: { int rawValue = input.readEnum(); typeCase_ = 5; type_ = rawValue; break; } // case 40 case 50: { input.readMessage( getConfigEvaluationMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( getStringListFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 7; break; } // case 58 case 66: { input.readMessage( getIntRangeFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 8; break; } // case 66 case 74: { input.readMessage( getDurationFieldBuilder().getBuilder(), extensionRegistry); typeCase_ = 9; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int typeCase_ = 0; private java.lang.Object type_; public TypeCase getTypeCase() { return TypeCase.forNumber( typeCase_); } public Builder clearType() { typeCase_ = 0; type_ = null; onChanged(); return this; } private int bitField0_; /** * int64 int = 1; * @return Whether the int field is set. */ public boolean hasInt() { return typeCase_ == 1; } /** * int64 int = 1; * @return The int. */ public long getInt() { if (typeCase_ == 1) { return (java.lang.Long) type_; } return 0L; } /** * int64 int = 1; * @param value The int to set. * @return This builder for chaining. */ public Builder setInt(long value) { typeCase_ = 1; type_ = value; onChanged(); return this; } /** * int64 int = 1; * @return This builder for chaining. */ public Builder clearInt() { if (typeCase_ == 1) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * string string = 2; * @return Whether the string field is set. */ @java.lang.Override public boolean hasString() { return typeCase_ == 2; } /** * string string = 2; * @return The string. */ @java.lang.Override public java.lang.String getString() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (typeCase_ == 2) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string string = 2; * @return The bytes for string. */ @java.lang.Override public com.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (typeCase_ == 2) { ref = type_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (typeCase_ == 2) { type_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string string = 2; * @param value The string to set. * @return This builder for chaining. */ public Builder setString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeCase_ = 2; type_ = value; onChanged(); return this; } /** * string string = 2; * @return This builder for chaining. */ public Builder clearString() { if (typeCase_ == 2) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * string string = 2; * @param value The bytes for string to set. * @return This builder for chaining. */ public Builder setStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeCase_ = 2; type_ = value; onChanged(); return this; } /** * double double = 3; * @return Whether the double field is set. */ public boolean hasDouble() { return typeCase_ == 3; } /** * double double = 3; * @return The double. */ public double getDouble() { if (typeCase_ == 3) { return (java.lang.Double) type_; } return 0D; } /** * double double = 3; * @param value The double to set. * @return This builder for chaining. */ public Builder setDouble(double value) { typeCase_ = 3; type_ = value; onChanged(); return this; } /** * double double = 3; * @return This builder for chaining. */ public Builder clearDouble() { if (typeCase_ == 3) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * bool bool = 4; * @return Whether the bool field is set. */ public boolean hasBool() { return typeCase_ == 4; } /** * bool bool = 4; * @return The bool. */ public boolean getBool() { if (typeCase_ == 4) { return (java.lang.Boolean) type_; } return false; } /** * bool bool = 4; * @param value The bool to set. * @return This builder for chaining. */ public Builder setBool(boolean value) { typeCase_ = 4; type_ = value; onChanged(); return this; } /** * bool bool = 4; * @return This builder for chaining. */ public Builder clearBool() { if (typeCase_ == 4) { typeCase_ = 0; type_ = null; onChanged(); } return this; } /** * .prefab.LogLevel log_level = 5; * @return Whether the logLevel field is set. */ @java.lang.Override public boolean hasLogLevel() { return typeCase_ == 5; } /** * .prefab.LogLevel log_level = 5; * @return The enum numeric value on the wire for logLevel. */ @java.lang.Override public int getLogLevelValue() { if (typeCase_ == 5) { return ((java.lang.Integer) type_).intValue(); } return 0; } /** * .prefab.LogLevel log_level = 5; * @param value The enum numeric value on the wire for logLevel to set. * @return This builder for chaining. */ public Builder setLogLevelValue(int value) { typeCase_ = 5; type_ = value; onChanged(); return this; } /** * .prefab.LogLevel log_level = 5; * @return The logLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LogLevel getLogLevel() { if (typeCase_ == 5) { cloud.prefab.domain.Prefab.LogLevel result = cloud.prefab.domain.Prefab.LogLevel.forNumber( (java.lang.Integer) type_); return result == null ? cloud.prefab.domain.Prefab.LogLevel.UNRECOGNIZED : result; } return cloud.prefab.domain.Prefab.LogLevel.NOT_SET_LOG_LEVEL; } /** * .prefab.LogLevel log_level = 5; * @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_ = 5; type_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LogLevel log_level = 5; * @return This builder for chaining. */ public Builder clearLogLevel() { if (typeCase_ == 5) { 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 = 7; * @return Whether the stringList field is set. */ @java.lang.Override public boolean hasStringList() { return typeCase_ == 7; } /** * .prefab.StringList string_list = 7; * @return The stringList. */ @java.lang.Override public cloud.prefab.domain.Prefab.StringList getStringList() { if (stringListBuilder_ == null) { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } else { if (typeCase_ == 7) { return stringListBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } } /** * .prefab.StringList string_list = 7; */ 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_ = 7; return this; } /** * .prefab.StringList string_list = 7; */ public Builder setStringList( cloud.prefab.domain.Prefab.StringList.Builder builderForValue) { if (stringListBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { stringListBuilder_.setMessage(builderForValue.build()); } typeCase_ = 7; return this; } /** * .prefab.StringList string_list = 7; */ public Builder mergeStringList(cloud.prefab.domain.Prefab.StringList value) { if (stringListBuilder_ == null) { if (typeCase_ == 7 && 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_ == 7) { stringListBuilder_.mergeFrom(value); } else { stringListBuilder_.setMessage(value); } } typeCase_ = 7; return this; } /** * .prefab.StringList string_list = 7; */ public Builder clearStringList() { if (stringListBuilder_ == null) { if (typeCase_ == 7) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 7) { typeCase_ = 0; type_ = null; } stringListBuilder_.clear(); } return this; } /** * .prefab.StringList string_list = 7; */ public cloud.prefab.domain.Prefab.StringList.Builder getStringListBuilder() { return getStringListFieldBuilder().getBuilder(); } /** * .prefab.StringList string_list = 7; */ @java.lang.Override public cloud.prefab.domain.Prefab.StringListOrBuilder getStringListOrBuilder() { if ((typeCase_ == 7) && (stringListBuilder_ != null)) { return stringListBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 7) { return (cloud.prefab.domain.Prefab.StringList) type_; } return cloud.prefab.domain.Prefab.StringList.getDefaultInstance(); } } /** * .prefab.StringList string_list = 7; */ 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_ == 7)) { 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_ = 7; onChanged(); return stringListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder> intRangeBuilder_; /** * .prefab.IntRange int_range = 8; * @return Whether the intRange field is set. */ @java.lang.Override public boolean hasIntRange() { return typeCase_ == 8; } /** * .prefab.IntRange int_range = 8; * @return The intRange. */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRange getIntRange() { if (intRangeBuilder_ == null) { if (typeCase_ == 8) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } else { if (typeCase_ == 8) { return intRangeBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } } /** * .prefab.IntRange int_range = 8; */ public Builder setIntRange(cloud.prefab.domain.Prefab.IntRange value) { if (intRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { intRangeBuilder_.setMessage(value); } typeCase_ = 8; return this; } /** * .prefab.IntRange int_range = 8; */ public Builder setIntRange( cloud.prefab.domain.Prefab.IntRange.Builder builderForValue) { if (intRangeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { intRangeBuilder_.setMessage(builderForValue.build()); } typeCase_ = 8; return this; } /** * .prefab.IntRange int_range = 8; */ public Builder mergeIntRange(cloud.prefab.domain.Prefab.IntRange value) { if (intRangeBuilder_ == null) { if (typeCase_ == 8 && type_ != cloud.prefab.domain.Prefab.IntRange.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.IntRange.newBuilder((cloud.prefab.domain.Prefab.IntRange) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 8) { intRangeBuilder_.mergeFrom(value); } else { intRangeBuilder_.setMessage(value); } } typeCase_ = 8; return this; } /** * .prefab.IntRange int_range = 8; */ public Builder clearIntRange() { if (intRangeBuilder_ == null) { if (typeCase_ == 8) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 8) { typeCase_ = 0; type_ = null; } intRangeBuilder_.clear(); } return this; } /** * .prefab.IntRange int_range = 8; */ public cloud.prefab.domain.Prefab.IntRange.Builder getIntRangeBuilder() { return getIntRangeFieldBuilder().getBuilder(); } /** * .prefab.IntRange int_range = 8; */ @java.lang.Override public cloud.prefab.domain.Prefab.IntRangeOrBuilder getIntRangeOrBuilder() { if ((typeCase_ == 8) && (intRangeBuilder_ != null)) { return intRangeBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 8) { return (cloud.prefab.domain.Prefab.IntRange) type_; } return cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } } /** * .prefab.IntRange int_range = 8; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder> getIntRangeFieldBuilder() { if (intRangeBuilder_ == null) { if (!(typeCase_ == 8)) { type_ = cloud.prefab.domain.Prefab.IntRange.getDefaultInstance(); } intRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.IntRange, cloud.prefab.domain.Prefab.IntRange.Builder, cloud.prefab.domain.Prefab.IntRangeOrBuilder>( (cloud.prefab.domain.Prefab.IntRange) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 8; onChanged(); return intRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ClientDuration, cloud.prefab.domain.Prefab.ClientDuration.Builder, cloud.prefab.domain.Prefab.ClientDurationOrBuilder> durationBuilder_; /** * .prefab.ClientDuration duration = 9; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return typeCase_ == 9; } /** * .prefab.ClientDuration duration = 9; * @return The duration. */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientDuration getDuration() { if (durationBuilder_ == null) { if (typeCase_ == 9) { return (cloud.prefab.domain.Prefab.ClientDuration) type_; } return cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } else { if (typeCase_ == 9) { return durationBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } } /** * .prefab.ClientDuration duration = 9; */ public Builder setDuration(cloud.prefab.domain.Prefab.ClientDuration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { durationBuilder_.setMessage(value); } typeCase_ = 9; return this; } /** * .prefab.ClientDuration duration = 9; */ public Builder setDuration( cloud.prefab.domain.Prefab.ClientDuration.Builder builderForValue) { if (durationBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { durationBuilder_.setMessage(builderForValue.build()); } typeCase_ = 9; return this; } /** * .prefab.ClientDuration duration = 9; */ public Builder mergeDuration(cloud.prefab.domain.Prefab.ClientDuration value) { if (durationBuilder_ == null) { if (typeCase_ == 9 && type_ != cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance()) { type_ = cloud.prefab.domain.Prefab.ClientDuration.newBuilder((cloud.prefab.domain.Prefab.ClientDuration) type_) .mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { if (typeCase_ == 9) { durationBuilder_.mergeFrom(value); } else { durationBuilder_.setMessage(value); } } typeCase_ = 9; return this; } /** * .prefab.ClientDuration duration = 9; */ public Builder clearDuration() { if (durationBuilder_ == null) { if (typeCase_ == 9) { typeCase_ = 0; type_ = null; onChanged(); } } else { if (typeCase_ == 9) { typeCase_ = 0; type_ = null; } durationBuilder_.clear(); } return this; } /** * .prefab.ClientDuration duration = 9; */ public cloud.prefab.domain.Prefab.ClientDuration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** * .prefab.ClientDuration duration = 9; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientDurationOrBuilder getDurationOrBuilder() { if ((typeCase_ == 9) && (durationBuilder_ != null)) { return durationBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 9) { return (cloud.prefab.domain.Prefab.ClientDuration) type_; } return cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } } /** * .prefab.ClientDuration duration = 9; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ClientDuration, cloud.prefab.domain.Prefab.ClientDuration.Builder, cloud.prefab.domain.Prefab.ClientDurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { if (!(typeCase_ == 9)) { type_ = cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ClientDuration, cloud.prefab.domain.Prefab.ClientDuration.Builder, cloud.prefab.domain.Prefab.ClientDurationOrBuilder>( (cloud.prefab.domain.Prefab.ClientDuration) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 9; onChanged(); return durationBuilder_; } private cloud.prefab.domain.Prefab.ConfigEvaluationMetaData configEvaluationMetadata_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationMetaData, cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder> configEvaluationMetadataBuilder_; /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; * @return Whether the configEvaluationMetadata field is set. */ public boolean hasConfigEvaluationMetadata() { return ((bitField0_ & 0x00000100) != 0); } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; * @return The configEvaluationMetadata. */ public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData getConfigEvaluationMetadata() { if (configEvaluationMetadataBuilder_ == null) { return configEvaluationMetadata_ == null ? cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance() : configEvaluationMetadata_; } else { return configEvaluationMetadataBuilder_.getMessage(); } } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ public Builder setConfigEvaluationMetadata(cloud.prefab.domain.Prefab.ConfigEvaluationMetaData value) { if (configEvaluationMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configEvaluationMetadata_ = value; } else { configEvaluationMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ public Builder setConfigEvaluationMetadata( cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder builderForValue) { if (configEvaluationMetadataBuilder_ == null) { configEvaluationMetadata_ = builderForValue.build(); } else { configEvaluationMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ public Builder mergeConfigEvaluationMetadata(cloud.prefab.domain.Prefab.ConfigEvaluationMetaData value) { if (configEvaluationMetadataBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && configEvaluationMetadata_ != null && configEvaluationMetadata_ != cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance()) { getConfigEvaluationMetadataBuilder().mergeFrom(value); } else { configEvaluationMetadata_ = value; } } else { configEvaluationMetadataBuilder_.mergeFrom(value); } if (configEvaluationMetadata_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ public Builder clearConfigEvaluationMetadata() { bitField0_ = (bitField0_ & ~0x00000100); configEvaluationMetadata_ = null; if (configEvaluationMetadataBuilder_ != null) { configEvaluationMetadataBuilder_.dispose(); configEvaluationMetadataBuilder_ = null; } onChanged(); return this; } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ public cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder getConfigEvaluationMetadataBuilder() { bitField0_ |= 0x00000100; onChanged(); return getConfigEvaluationMetadataFieldBuilder().getBuilder(); } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ public cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder getConfigEvaluationMetadataOrBuilder() { if (configEvaluationMetadataBuilder_ != null) { return configEvaluationMetadataBuilder_.getMessageOrBuilder(); } else { return configEvaluationMetadata_ == null ? cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.getDefaultInstance() : configEvaluationMetadata_; } } /** * optional .prefab.ConfigEvaluationMetaData config_evaluation_metadata = 6; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationMetaData, cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder> getConfigEvaluationMetadataFieldBuilder() { if (configEvaluationMetadataBuilder_ == null) { configEvaluationMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationMetaData, cloud.prefab.domain.Prefab.ConfigEvaluationMetaData.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationMetaDataOrBuilder>( getConfigEvaluationMetadata(), getParentForChildren(), isClean()); configEvaluationMetadata_ = null; } return configEvaluationMetadataBuilder_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientConfigValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientDurationOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ClientDuration) com.google.protobuf.MessageOrBuilder { /** *
     * the actual time is the sum of these, so 1.5 seconds would be seconds = 1, nanos = 500_000_000
     * 
* * int64 seconds = 1; * @return The seconds. */ long getSeconds(); /** * int32 nanos = 2; * @return The nanos. */ int getNanos(); } /** * Protobuf type {@code prefab.ClientDuration} */ public static final class ClientDuration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ClientDuration) ClientDurationOrBuilder { private static final long serialVersionUID = 0L; // Use ClientDuration.newBuilder() to construct. private ClientDuration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientDuration() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientDuration(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientDuration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientDuration_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ClientDuration.class, cloud.prefab.domain.Prefab.ClientDuration.Builder.class); } public static final int SECONDS_FIELD_NUMBER = 1; private long seconds_ = 0L; /** *
     * the actual time is the sum of these, so 1.5 seconds would be seconds = 1, nanos = 500_000_000
     * 
* * int64 seconds = 1; * @return The seconds. */ @java.lang.Override public long getSeconds() { return seconds_; } public static final int NANOS_FIELD_NUMBER = 2; private int nanos_ = 0; /** * int32 nanos = 2; * @return The nanos. */ @java.lang.Override public int getNanos() { return nanos_; } 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 (seconds_ != 0L) { output.writeInt64(1, seconds_); } if (nanos_ != 0) { output.writeInt32(2, nanos_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (seconds_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, seconds_); } if (nanos_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, nanos_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ClientDuration)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ClientDuration other = (cloud.prefab.domain.Prefab.ClientDuration) obj; if (getSeconds() != other.getSeconds()) return false; if (getNanos() != other.getNanos()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeconds()); hash = (37 * hash) + NANOS_FIELD_NUMBER; hash = (53 * hash) + getNanos(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ClientDuration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientDuration 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.ClientDuration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientDuration 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.ClientDuration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientDuration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientDuration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientDuration 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.ClientDuration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientDuration 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.ClientDuration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientDuration 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.ClientDuration 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.ClientDuration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ClientDuration) cloud.prefab.domain.Prefab.ClientDurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientDuration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientDuration_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ClientDuration.class, cloud.prefab.domain.Prefab.ClientDuration.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ClientDuration.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; seconds_ = 0L; nanos_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientDuration_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientDuration getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ClientDuration build() { cloud.prefab.domain.Prefab.ClientDuration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientDuration buildPartial() { cloud.prefab.domain.Prefab.ClientDuration result = new cloud.prefab.domain.Prefab.ClientDuration(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ClientDuration result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.seconds_ = seconds_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.nanos_ = nanos_; } } @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.ClientDuration) { return mergeFrom((cloud.prefab.domain.Prefab.ClientDuration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ClientDuration other) { if (other == cloud.prefab.domain.Prefab.ClientDuration.getDefaultInstance()) return this; if (other.getSeconds() != 0L) { setSeconds(other.getSeconds()); } if (other.getNanos() != 0) { setNanos(other.getNanos()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { seconds_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { nanos_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long seconds_ ; /** *
       * the actual time is the sum of these, so 1.5 seconds would be seconds = 1, nanos = 500_000_000
       * 
* * int64 seconds = 1; * @return The seconds. */ @java.lang.Override public long getSeconds() { return seconds_; } /** *
       * the actual time is the sum of these, so 1.5 seconds would be seconds = 1, nanos = 500_000_000
       * 
* * int64 seconds = 1; * @param value The seconds to set. * @return This builder for chaining. */ public Builder setSeconds(long value) { seconds_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * the actual time is the sum of these, so 1.5 seconds would be seconds = 1, nanos = 500_000_000
       * 
* * int64 seconds = 1; * @return This builder for chaining. */ public Builder clearSeconds() { bitField0_ = (bitField0_ & ~0x00000001); seconds_ = 0L; onChanged(); return this; } private int nanos_ ; /** * int32 nanos = 2; * @return The nanos. */ @java.lang.Override public int getNanos() { return nanos_; } /** * int32 nanos = 2; * @param value The nanos to set. * @return This builder for chaining. */ public Builder setNanos(int value) { nanos_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 nanos = 2; * @return This builder for chaining. */ public Builder clearNanos() { bitField0_ = (bitField0_ & ~0x00000002); nanos_ = 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.ClientDuration) } // @@protoc_insertion_point(class_scope:prefab.ClientDuration) private static final cloud.prefab.domain.Prefab.ClientDuration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ClientDuration(); } public static cloud.prefab.domain.Prefab.ClientDuration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientDuration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientDuration 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); /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; * @return Whether the apikeyMetadata field is set. */ boolean hasApikeyMetadata(); /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; * @return The apikeyMetadata. */ cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata(); /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder(); /** * optional .prefab.ContextSet default_context = 3; * @return Whether the defaultContext field is set. */ boolean hasDefaultContext(); /** * optional .prefab.ContextSet default_context = 3; * @return The defaultContext. */ cloud.prefab.domain.Prefab.ContextSet getDefaultContext(); /** * optional .prefab.ContextSet default_context = 3; */ cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder(); } /** * 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(); } 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); } private int bitField0_; 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()); } @SuppressWarnings("serial") 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 /* nullable */ cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ 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 static final int APIKEY_METADATA_FIELD_NUMBER = 2; private cloud.prefab.domain.Prefab.ApiKeyMetadata apikeyMetadata_; /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; * @return Whether the apikeyMetadata field is set. */ @java.lang.Override public boolean hasApikeyMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; * @return The apikeyMetadata. */ @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata() { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder() { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } public static final int DEFAULT_CONTEXT_FIELD_NUMBER = 3; private cloud.prefab.domain.Prefab.ContextSet defaultContext_; /** * optional .prefab.ContextSet default_context = 3; * @return Whether the defaultContext field is set. */ @java.lang.Override public boolean hasDefaultContext() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .prefab.ContextSet default_context = 3; * @return The defaultContext. */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet getDefaultContext() { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } /** * optional .prefab.ContextSet default_context = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder() { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } 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); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getApikeyMetadata()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getDefaultContext()); } getUnknownFields().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__); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getApikeyMetadata()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDefaultContext()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (hasApikeyMetadata() != other.hasApikeyMetadata()) return false; if (hasApikeyMetadata()) { if (!getApikeyMetadata() .equals(other.getApikeyMetadata())) return false; } if (hasDefaultContext() != other.hasDefaultContext()) return false; if (hasDefaultContext()) { if (!getDefaultContext() .equals(other.getDefaultContext())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetValues().getMap().isEmpty()) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetValues().hashCode(); } if (hasApikeyMetadata()) { hash = (37 * hash) + APIKEY_METADATA_FIELD_NUMBER; hash = (53 * hash) + getApikeyMetadata().hashCode(); } if (hasDefaultContext()) { hash = (37 * hash) + DEFAULT_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getDefaultContext().hashCode(); } hash = (29 * hash) + getUnknownFields().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) { getApikeyMetadataFieldBuilder(); getDefaultContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableValues().clear(); apikeyMetadata_ = null; if (apikeyMetadataBuilder_ != null) { apikeyMetadataBuilder_.dispose(); apikeyMetadataBuilder_ = null; } defaultContext_ = null; if (defaultContextBuilder_ != null) { defaultContextBuilder_.dispose(); defaultContextBuilder_ = null; } 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigEvaluations result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.values_ = internalGetValues(); result.values_.makeImmutable(); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.apikeyMetadata_ = apikeyMetadataBuilder_ == null ? apikeyMetadata_ : apikeyMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.defaultContext_ = defaultContextBuilder_ == null ? defaultContext_ : defaultContextBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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()); bitField0_ |= 0x00000001; if (other.hasApikeyMetadata()) { mergeApikeyMetadata(other.getApikeyMetadata()); } if (other.hasDefaultContext()) { mergeDefaultContext(other.getDefaultContext()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry values__ = input.readMessage( ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableValues().getMutableMap().put( values__.getKey(), values__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getApikeyMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getDefaultContextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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() { if (values_ == null) { values_ = com.google.protobuf.MapField.newMapField( ValuesDefaultEntryHolder.defaultEntry); } if (!values_.isMutable()) { values_ = values_.copy(); } bitField0_ |= 0x00000001; onChanged(); 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 /* nullable */ cloud.prefab.domain.Prefab.ClientConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ 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() { bitField0_ = (bitField0_ & ~0x00000001); 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() { bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; return this; } /** * map<string, .prefab.ClientConfigValue> values = 1; */ public Builder putAllValues( java.util.Map values) { internalGetMutableValues().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; return this; } private cloud.prefab.domain.Prefab.ApiKeyMetadata apikeyMetadata_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder> apikeyMetadataBuilder_; /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; * @return Whether the apikeyMetadata field is set. */ public boolean hasApikeyMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; * @return The apikeyMetadata. */ public cloud.prefab.domain.Prefab.ApiKeyMetadata getApikeyMetadata() { if (apikeyMetadataBuilder_ == null) { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } else { return apikeyMetadataBuilder_.getMessage(); } } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ public Builder setApikeyMetadata(cloud.prefab.domain.Prefab.ApiKeyMetadata value) { if (apikeyMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } apikeyMetadata_ = value; } else { apikeyMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ public Builder setApikeyMetadata( cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder builderForValue) { if (apikeyMetadataBuilder_ == null) { apikeyMetadata_ = builderForValue.build(); } else { apikeyMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ public Builder mergeApikeyMetadata(cloud.prefab.domain.Prefab.ApiKeyMetadata value) { if (apikeyMetadataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && apikeyMetadata_ != null && apikeyMetadata_ != cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance()) { getApikeyMetadataBuilder().mergeFrom(value); } else { apikeyMetadata_ = value; } } else { apikeyMetadataBuilder_.mergeFrom(value); } if (apikeyMetadata_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ public Builder clearApikeyMetadata() { bitField0_ = (bitField0_ & ~0x00000002); apikeyMetadata_ = null; if (apikeyMetadataBuilder_ != null) { apikeyMetadataBuilder_.dispose(); apikeyMetadataBuilder_ = null; } onChanged(); return this; } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ public cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder getApikeyMetadataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getApikeyMetadataFieldBuilder().getBuilder(); } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ public cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder getApikeyMetadataOrBuilder() { if (apikeyMetadataBuilder_ != null) { return apikeyMetadataBuilder_.getMessageOrBuilder(); } else { return apikeyMetadata_ == null ? cloud.prefab.domain.Prefab.ApiKeyMetadata.getDefaultInstance() : apikeyMetadata_; } } /** * optional .prefab.ApiKeyMetadata apikey_metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder> getApikeyMetadataFieldBuilder() { if (apikeyMetadataBuilder_ == null) { apikeyMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ApiKeyMetadata, cloud.prefab.domain.Prefab.ApiKeyMetadata.Builder, cloud.prefab.domain.Prefab.ApiKeyMetadataOrBuilder>( getApikeyMetadata(), getParentForChildren(), isClean()); apikeyMetadata_ = null; } return apikeyMetadataBuilder_; } private cloud.prefab.domain.Prefab.ContextSet defaultContext_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> defaultContextBuilder_; /** * optional .prefab.ContextSet default_context = 3; * @return Whether the defaultContext field is set. */ public boolean hasDefaultContext() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .prefab.ContextSet default_context = 3; * @return The defaultContext. */ public cloud.prefab.domain.Prefab.ContextSet getDefaultContext() { if (defaultContextBuilder_ == null) { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } else { return defaultContextBuilder_.getMessage(); } } /** * optional .prefab.ContextSet default_context = 3; */ public Builder setDefaultContext(cloud.prefab.domain.Prefab.ContextSet value) { if (defaultContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultContext_ = value; } else { defaultContextBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .prefab.ContextSet default_context = 3; */ public Builder setDefaultContext( cloud.prefab.domain.Prefab.ContextSet.Builder builderForValue) { if (defaultContextBuilder_ == null) { defaultContext_ = builderForValue.build(); } else { defaultContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .prefab.ContextSet default_context = 3; */ public Builder mergeDefaultContext(cloud.prefab.domain.Prefab.ContextSet value) { if (defaultContextBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && defaultContext_ != null && defaultContext_ != cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) { getDefaultContextBuilder().mergeFrom(value); } else { defaultContext_ = value; } } else { defaultContextBuilder_.mergeFrom(value); } if (defaultContext_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * optional .prefab.ContextSet default_context = 3; */ public Builder clearDefaultContext() { bitField0_ = (bitField0_ & ~0x00000004); defaultContext_ = null; if (defaultContextBuilder_ != null) { defaultContextBuilder_.dispose(); defaultContextBuilder_ = null; } onChanged(); return this; } /** * optional .prefab.ContextSet default_context = 3; */ public cloud.prefab.domain.Prefab.ContextSet.Builder getDefaultContextBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDefaultContextFieldBuilder().getBuilder(); } /** * optional .prefab.ContextSet default_context = 3; */ public cloud.prefab.domain.Prefab.ContextSetOrBuilder getDefaultContextOrBuilder() { if (defaultContextBuilder_ != null) { return defaultContextBuilder_.getMessageOrBuilder(); } else { return defaultContext_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : defaultContext_; } } /** * optional .prefab.ContextSet default_context = 3; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> getDefaultContextFieldBuilder() { if (defaultContextBuilder_ == null) { defaultContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder>( getDefaultContext(), getParentForChildren(), isClean()); defaultContext_ = null; } return defaultContextBuilder_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } 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_ = 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; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.forNumber(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } public static final int LIMIT_FIELD_NUMBER = 3; private int limit_ = 0; /** * 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_ = 0; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = false; /** * 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_ = 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; * @return The safetyLevel. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel getSafetyLevel() { cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.LimitDefinition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.policyName_ = policyName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.limit_ = limit_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.burst_ = burst_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.lastModified_ = lastModified_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.returnable_ = returnable_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.safetyLevel_ = safetyLevel_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { policyName_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 16 case 24: { limit_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 24 case 32: { burst_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 32 case 40: { accountId_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 40 case 48: { lastModified_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 48 case 56: { returnable_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 56 case 64: { safetyLevel_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return The policyName. */ @java.lang.Override public cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames getPolicyName() { cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames result = cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.forNumber(policyName_); return result == null ? cloud.prefab.domain.Prefab.LimitResponse.LimitPolicyNames.UNRECOGNIZED : result; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 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(); } bitField0_ |= 0x00000001; policyName_ = value.getNumber(); onChanged(); return this; } /** * .prefab.LimitResponse.LimitPolicyNames policy_name = 2; * @return This builder for chaining. */ public Builder clearPolicyName() { bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int32 limit = 3; * @return This builder for chaining. */ public Builder clearLimit() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 burst = 4; * @return This builder for chaining. */ public Builder clearBurst() { bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 account_id = 5; * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 last_modified = 6; * @return This builder for chaining. */ public Builder clearLastModified() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bool returnable = 7; * @return This builder for chaining. */ public Builder clearReturnable() { bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000040; 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() { cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel result = cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.forNumber(safetyLevel_); return result == null ? cloud.prefab.domain.Prefab.LimitDefinition.SafetyLevel.UNRECOGNIZED : result; } /** *
       * [default = L4_BEST_EFFORT]; // 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(); } bitField0_ |= 0x00000040; 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() { bitField0_ = (bitField0_ & ~0x00000040); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } 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; @SuppressWarnings("serial") 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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDefinitionsCount() > 0) { hash = (37 * hash) + DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getDefinitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (definitionsBuilder_ == null) { definitions_ = java.util.Collections.emptyList(); } else { definitions_ = null; definitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.LimitDefinitions result) { if (definitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { definitions_ = java.util.Collections.unmodifiableList(definitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.definitions_ = definitions_; } else { result.definitions_ = definitionsBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.LimitDefinitions result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.LimitDefinition m = input.readMessage( cloud.prefab.domain.Prefab.LimitDefinition.parser(), extensionRegistry); if (definitionsBuilder_ == null) { ensureDefinitionsIsMutable(); definitions_.add(m); } else { definitionsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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.emptyList(); contentType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BufferedRequest(); } 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_ = 0L; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int METHOD_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * 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; @SuppressWarnings("serial") 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_ = false; /** * 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, accountId_); } if (!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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = 0L; method_ = ""; uri_ = ""; body_ = ""; limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.BufferedRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.method_ = method_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.body_ = body_; } if (((from_bitField0_ & 0x00000010) != 0)) { limitGroups_.makeImmutable(); result.limitGroups_ = limitGroups_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.contentType_ = contentType_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.fifo_ = fifo_; } } @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_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getBody().isEmpty()) { body_ = other.body_; bitField0_ |= 0x00000008; onChanged(); } if (!other.limitGroups_.isEmpty()) { if (limitGroups_.isEmpty()) { limitGroups_ = other.limitGroups_; bitField0_ |= 0x00000010; } else { ensureLimitGroupsIsMutable(); limitGroups_.addAll(other.limitGroups_); } onChanged(); } if (!other.getContentType().isEmpty()) { contentType_ = other.contentType_; bitField0_ |= 0x00000020; onChanged(); } if (other.getFifo() != false) { setFifo(other.getFifo()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { method_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { body_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureLimitGroupsIsMutable(); limitGroups_.add(s); break; } // case 42 case 50: { contentType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { fifo_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long accountId_ ; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000001); accountId_ = 0L; onChanged(); return this; } private 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string method = 2; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string uri = 3; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string body = 4; * @return This builder for chaining. */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureLimitGroupsIsMutable() { if (!limitGroups_.isModifiable()) { limitGroups_ = new com.google.protobuf.LazyStringArrayList(limitGroups_); } bitField0_ |= 0x00000010; } /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ public com.google.protobuf.ProtocolStringList getLimitGroupsList() { limitGroups_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string limit_groups = 5; * @return This builder for chaining. */ public Builder clearLimitGroups() { limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; 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); bitField0_ |= 0x00000010; 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string content_type = 6; * @return This builder for chaining. */ public Builder clearContentType() { contentType_ = getDefaultInstance().getContentType(); bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000020; 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * bool fifo = 7; * @return This builder for chaining. */ public Builder clearFifo() { bitField0_ = (bitField0_ & ~0x00000040); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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.emptyList(); batchTemplate_ = ""; batchSeparator_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BatchRequest(); } 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_ = 0L; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int METHOD_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, accountId_); } if (!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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAccountId()); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; accountId_ = 0L; method_ = ""; uri_ = ""; body_ = ""; limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.BatchRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.method_ = method_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.body_ = body_; } if (((from_bitField0_ & 0x00000010) != 0)) { limitGroups_.makeImmutable(); result.limitGroups_ = limitGroups_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.batchTemplate_ = batchTemplate_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.batchSeparator_ = batchSeparator_; } } @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_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getBody().isEmpty()) { body_ = other.body_; bitField0_ |= 0x00000008; onChanged(); } if (!other.limitGroups_.isEmpty()) { if (limitGroups_.isEmpty()) { limitGroups_ = other.limitGroups_; bitField0_ |= 0x00000010; } else { ensureLimitGroupsIsMutable(); limitGroups_.addAll(other.limitGroups_); } onChanged(); } if (!other.getBatchTemplate().isEmpty()) { batchTemplate_ = other.batchTemplate_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getBatchSeparator().isEmpty()) { batchSeparator_ = other.batchSeparator_; bitField0_ |= 0x00000040; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { accountId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { method_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { body_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureLimitGroupsIsMutable(); limitGroups_.add(s); break; } // case 42 case 50: { batchTemplate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { batchSeparator_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long accountId_ ; /** * int64 account_id = 1; * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * int64 account_id = 1; * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 account_id = 1; * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000001); accountId_ = 0L; onChanged(); return this; } private 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string method = 2; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string uri = 3; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string body = 4; * @return This builder for chaining. */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureLimitGroupsIsMutable() { if (!limitGroups_.isModifiable()) { limitGroups_ = new com.google.protobuf.LazyStringArrayList(limitGroups_); } bitField0_ |= 0x00000010; } /** * repeated string limit_groups = 5; * @return A list containing the limitGroups. */ public com.google.protobuf.ProtocolStringList getLimitGroupsList() { limitGroups_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * repeated string limit_groups = 5; * @return This builder for chaining. */ public Builder clearLimitGroups() { limitGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; 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); bitField0_ |= 0x00000010; 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string batch_template = 6; * @return This builder for chaining. */ public Builder clearBatchTemplate() { batchTemplate_ = getDefaultInstance().getBatchTemplate(); bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000020; 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * string batch_separator = 7; * @return This builder for chaining. */ public Builder clearBatchSeparator() { batchSeparator_ = getDefaultInstance().getBatchSeparator(); bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000040; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } 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; @SuppressWarnings("serial") 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.BasicResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } } @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_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string message = 1; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } 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; @SuppressWarnings("serial") 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_ = 0L; /** * 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (newId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, newId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.CreationResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.newId_ = newId_; } } @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_; bitField0_ |= 0x00000001; onChanged(); } if (other.getNewId() != 0L) { setNewId(other.getNewId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { newId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string message = 1; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 new_id = 2; * @return This builder for chaining. */ public Builder clearNewId() { bitField0_ = (bitField0_ & ~0x00000002); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } 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_ = 0L; /** * 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_ = 0L; /** * 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; @SuppressWarnings("serial") 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_ = 0L; /** * 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_ = 0L; /** * 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectId_); } if (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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.IdBlock result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.projectEnvId_ = projectEnvId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sequenceName_ = sequenceName_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.start_ = start_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.end_ = end_; } } @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_; bitField0_ |= 0x00000004; onChanged(); } if (other.getStart() != 0L) { setStart(other.getStart()); } if (other.getEnd() != 0L) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { projectEnvId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { sequenceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { start_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { end_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long projectId_ ; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 1; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 project_id = 1; * @return This builder for chaining. */ public Builder clearProjectId() { bitField0_ = (bitField0_ & ~0x00000001); projectId_ = 0L; onChanged(); return this; } private long 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 project_env_id = 2; * @return This builder for chaining. */ public Builder clearProjectEnvId() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string sequence_name = 3; * @return This builder for chaining. */ public Builder clearSequenceName() { sequenceName_ = getDefaultInstance().getSequenceName(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 start = 4; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 end = 5; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000010); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.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(); } 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_ = 0L; /** * 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_ = 0L; /** * 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; @SuppressWarnings("serial") 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_ = 0L; /** * 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (projectId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, projectId_); } if (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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProjectId()); hash = (37 * hash) + 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.IdBlockRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.projectEnvId_ = projectEnvId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sequenceName_ = sequenceName_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.size_ = size_; } } @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_; bitField0_ |= 0x00000004; onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { projectId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { projectEnvId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { sequenceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { size_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long projectId_ ; /** * int64 project_id = 1; * @return The projectId. */ @java.lang.Override public long getProjectId() { return projectId_; } /** * int64 project_id = 1; * @param value The projectId to set. * @return This builder for chaining. */ public Builder setProjectId(long value) { projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 project_id = 1; * @return This builder for chaining. */ public Builder clearProjectId() { bitField0_ = (bitField0_ & ~0x00000001); projectId_ = 0L; onChanged(); return this; } private long 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 project_env_id = 2; * @return This builder for chaining. */ public Builder clearProjectEnvId() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string sequence_name = 3; * @return This builder for chaining. */ public Builder clearSequenceName() { sequenceName_ = getDefaultInstance().getSequenceName(); bitField0_ = (bitField0_ & ~0x00000004); 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; bitField0_ |= 0x00000004; 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; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int64 size = 4; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000008); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.IdBlockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContextShapeOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ContextShape) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * map<string, int32> field_types = 2; */ int getFieldTypesCount(); /** * map<string, int32> field_types = 2; */ boolean containsFieldTypes( java.lang.String key); /** * Use {@link #getFieldTypesMap()} instead. */ @java.lang.Deprecated java.util.Map getFieldTypes(); /** * map<string, int32> field_types = 2; */ java.util.Map getFieldTypesMap(); /** * map<string, int32> field_types = 2; */ int getFieldTypesOrDefault( java.lang.String key, int defaultValue); /** * map<string, int32> field_types = 2; */ int getFieldTypesOrThrow( java.lang.String key); } /** * Protobuf type {@code prefab.ContextShape} */ public static final class ContextShape extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ContextShape) ContextShapeOrBuilder { private static final long serialVersionUID = 0L; // Use ContextShape.newBuilder() to construct. private ContextShape(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContextShape() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContextShape(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShape_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetFieldTypes(); 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_ContextShape_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ContextShape.class, cloud.prefab.domain.Prefab.ContextShape.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELD_TYPES_FIELD_NUMBER = 2; private static final class FieldTypesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( cloud.prefab.domain.Prefab.internal_static_prefab_ContextShape_FieldTypesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.INT32, 0); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> fieldTypes_; private com.google.protobuf.MapField internalGetFieldTypes() { if (fieldTypes_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldTypesDefaultEntryHolder.defaultEntry); } return fieldTypes_; } public int getFieldTypesCount() { return internalGetFieldTypes().getMap().size(); } /** * map<string, int32> field_types = 2; */ @java.lang.Override public boolean containsFieldTypes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFieldTypes().getMap().containsKey(key); } /** * Use {@link #getFieldTypesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFieldTypes() { return getFieldTypesMap(); } /** * map<string, int32> field_types = 2; */ @java.lang.Override public java.util.Map getFieldTypesMap() { return internalGetFieldTypes().getMap(); } /** * map<string, int32> field_types = 2; */ @java.lang.Override public int getFieldTypesOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFieldTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int32> field_types = 2; */ @java.lang.Override public int getFieldTypesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFieldTypes().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFieldTypes(), FieldTypesDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (java.util.Map.Entry entry : internalGetFieldTypes().getMap().entrySet()) { com.google.protobuf.MapEntry fieldTypes__ = FieldTypesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fieldTypes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ContextShape)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ContextShape other = (cloud.prefab.domain.Prefab.ContextShape) obj; if (!getName() .equals(other.getName())) return false; if (!internalGetFieldTypes().equals( other.internalGetFieldTypes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (!internalGetFieldTypes().getMap().isEmpty()) { hash = (37 * hash) + FIELD_TYPES_FIELD_NUMBER; hash = (53 * hash) + internalGetFieldTypes().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ContextShape parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextShape 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.ContextShape parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextShape 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.ContextShape parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextShape parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextShape parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextShape 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.ContextShape parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextShape 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.ContextShape parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextShape 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.ContextShape 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.ContextShape} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ContextShape) cloud.prefab.domain.Prefab.ContextShapeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShape_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetFieldTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableFieldTypes(); 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_ContextShape_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ContextShape.class, cloud.prefab.domain.Prefab.ContextShape.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ContextShape.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; internalGetMutableFieldTypes().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShape_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShape getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ContextShape.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShape build() { cloud.prefab.domain.Prefab.ContextShape result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShape buildPartial() { cloud.prefab.domain.Prefab.ContextShape result = new cloud.prefab.domain.Prefab.ContextShape(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ContextShape result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fieldTypes_ = internalGetFieldTypes(); result.fieldTypes_.makeImmutable(); } } @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.ContextShape) { return mergeFrom((cloud.prefab.domain.Prefab.ContextShape)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ContextShape other) { if (other == cloud.prefab.domain.Prefab.ContextShape.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } internalGetMutableFieldTypes().mergeFrom( other.internalGetFieldTypes()); bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.protobuf.MapEntry fieldTypes__ = input.readMessage( FieldTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFieldTypes().getMutableMap().put( fieldTypes__.getKey(), fieldTypes__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> fieldTypes_; private com.google.protobuf.MapField internalGetFieldTypes() { if (fieldTypes_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldTypesDefaultEntryHolder.defaultEntry); } return fieldTypes_; } private com.google.protobuf.MapField internalGetMutableFieldTypes() { if (fieldTypes_ == null) { fieldTypes_ = com.google.protobuf.MapField.newMapField( FieldTypesDefaultEntryHolder.defaultEntry); } if (!fieldTypes_.isMutable()) { fieldTypes_ = fieldTypes_.copy(); } bitField0_ |= 0x00000002; onChanged(); return fieldTypes_; } public int getFieldTypesCount() { return internalGetFieldTypes().getMap().size(); } /** * map<string, int32> field_types = 2; */ @java.lang.Override public boolean containsFieldTypes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFieldTypes().getMap().containsKey(key); } /** * Use {@link #getFieldTypesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFieldTypes() { return getFieldTypesMap(); } /** * map<string, int32> field_types = 2; */ @java.lang.Override public java.util.Map getFieldTypesMap() { return internalGetFieldTypes().getMap(); } /** * map<string, int32> field_types = 2; */ @java.lang.Override public int getFieldTypesOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFieldTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, int32> field_types = 2; */ @java.lang.Override public int getFieldTypesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFieldTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFieldTypes() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableFieldTypes().getMutableMap() .clear(); return this; } /** * map<string, int32> field_types = 2; */ public Builder removeFieldTypes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFieldTypes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFieldTypes() { bitField0_ |= 0x00000002; return internalGetMutableFieldTypes().getMutableMap(); } /** * map<string, int32> field_types = 2; */ public Builder putFieldTypes( java.lang.String key, int value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFieldTypes().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<string, int32> field_types = 2; */ public Builder putAllFieldTypes( java.util.Map values) { internalGetMutableFieldTypes().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ContextShape) } // @@protoc_insertion_point(class_scope:prefab.ContextShape) private static final cloud.prefab.domain.Prefab.ContextShape DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ContextShape(); } public static cloud.prefab.domain.Prefab.ContextShape getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContextShape parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShape getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContextShapesOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ContextShapes) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.ContextShape shapes = 1; */ java.util.List getShapesList(); /** * repeated .prefab.ContextShape shapes = 1; */ cloud.prefab.domain.Prefab.ContextShape getShapes(int index); /** * repeated .prefab.ContextShape shapes = 1; */ int getShapesCount(); /** * repeated .prefab.ContextShape shapes = 1; */ java.util.List getShapesOrBuilderList(); /** * repeated .prefab.ContextShape shapes = 1; */ cloud.prefab.domain.Prefab.ContextShapeOrBuilder getShapesOrBuilder( int index); /** * optional string namespace = 2; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** * optional string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * optional string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); } /** * Protobuf type {@code prefab.ContextShapes} */ public static final class ContextShapes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ContextShapes) ContextShapesOrBuilder { private static final long serialVersionUID = 0L; // Use ContextShapes.newBuilder() to construct. private ContextShapes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContextShapes() { shapes_ = java.util.Collections.emptyList(); namespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ContextShapes(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShapes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShapes_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ContextShapes.class, cloud.prefab.domain.Prefab.ContextShapes.Builder.class); } private int bitField0_; public static final int SHAPES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List shapes_; /** * repeated .prefab.ContextShape shapes = 1; */ @java.lang.Override public java.util.List getShapesList() { return shapes_; } /** * repeated .prefab.ContextShape shapes = 1; */ @java.lang.Override public java.util.List getShapesOrBuilderList() { return shapes_; } /** * repeated .prefab.ContextShape shapes = 1; */ @java.lang.Override public int getShapesCount() { return shapes_.size(); } /** * repeated .prefab.ContextShape shapes = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextShape getShapes(int index) { return shapes_.get(index); } /** * repeated .prefab.ContextShape shapes = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapeOrBuilder getShapesOrBuilder( int index) { return shapes_.get(index); } public static final int NAMESPACE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * optional string namespace = 2; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string namespace = 2; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** * optional string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < shapes_.size(); i++) { output.writeMessage(1, shapes_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < shapes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, shapes_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ContextShapes)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ContextShapes other = (cloud.prefab.domain.Prefab.ContextShapes) obj; if (!getShapesList() .equals(other.getShapesList())) return false; if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getShapesCount() > 0) { hash = (37 * hash) + SHAPES_FIELD_NUMBER; hash = (53 * hash) + getShapesList().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ContextShapes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextShapes 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.ContextShapes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextShapes 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.ContextShapes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ContextShapes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ContextShapes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextShapes 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.ContextShapes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextShapes 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.ContextShapes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ContextShapes 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.ContextShapes 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.ContextShapes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ContextShapes) cloud.prefab.domain.Prefab.ContextShapesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShapes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShapes_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ContextShapes.class, cloud.prefab.domain.Prefab.ContextShapes.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ContextShapes.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (shapesBuilder_ == null) { shapes_ = java.util.Collections.emptyList(); } else { shapes_ = null; shapesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); namespace_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ContextShapes_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapes getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapes build() { cloud.prefab.domain.Prefab.ContextShapes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapes buildPartial() { cloud.prefab.domain.Prefab.ContextShapes result = new cloud.prefab.domain.Prefab.ContextShapes(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ContextShapes result) { if (shapesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { shapes_ = java.util.Collections.unmodifiableList(shapes_); bitField0_ = (bitField0_ & ~0x00000001); } result.shapes_ = shapes_; } else { result.shapes_ = shapesBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ContextShapes result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.namespace_ = namespace_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ContextShapes) { return mergeFrom((cloud.prefab.domain.Prefab.ContextShapes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ContextShapes other) { if (other == cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance()) return this; if (shapesBuilder_ == null) { if (!other.shapes_.isEmpty()) { if (shapes_.isEmpty()) { shapes_ = other.shapes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureShapesIsMutable(); shapes_.addAll(other.shapes_); } onChanged(); } } else { if (!other.shapes_.isEmpty()) { if (shapesBuilder_.isEmpty()) { shapesBuilder_.dispose(); shapesBuilder_ = null; shapes_ = other.shapes_; bitField0_ = (bitField0_ & ~0x00000001); shapesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShapesFieldBuilder() : null; } else { shapesBuilder_.addAllMessages(other.shapes_); } } } if (other.hasNamespace()) { namespace_ = other.namespace_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.ContextShape m = input.readMessage( cloud.prefab.domain.Prefab.ContextShape.parser(), extensionRegistry); if (shapesBuilder_ == null) { ensureShapesIsMutable(); shapes_.add(m); } else { shapesBuilder_.addMessage(m); } break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List shapes_ = java.util.Collections.emptyList(); private void ensureShapesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { shapes_ = new java.util.ArrayList(shapes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ContextShape, cloud.prefab.domain.Prefab.ContextShape.Builder, cloud.prefab.domain.Prefab.ContextShapeOrBuilder> shapesBuilder_; /** * repeated .prefab.ContextShape shapes = 1; */ public java.util.List getShapesList() { if (shapesBuilder_ == null) { return java.util.Collections.unmodifiableList(shapes_); } else { return shapesBuilder_.getMessageList(); } } /** * repeated .prefab.ContextShape shapes = 1; */ public int getShapesCount() { if (shapesBuilder_ == null) { return shapes_.size(); } else { return shapesBuilder_.getCount(); } } /** * repeated .prefab.ContextShape shapes = 1; */ public cloud.prefab.domain.Prefab.ContextShape getShapes(int index) { if (shapesBuilder_ == null) { return shapes_.get(index); } else { return shapesBuilder_.getMessage(index); } } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder setShapes( int index, cloud.prefab.domain.Prefab.ContextShape value) { if (shapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapesIsMutable(); shapes_.set(index, value); onChanged(); } else { shapesBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder setShapes( int index, cloud.prefab.domain.Prefab.ContextShape.Builder builderForValue) { if (shapesBuilder_ == null) { ensureShapesIsMutable(); shapes_.set(index, builderForValue.build()); onChanged(); } else { shapesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder addShapes(cloud.prefab.domain.Prefab.ContextShape value) { if (shapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapesIsMutable(); shapes_.add(value); onChanged(); } else { shapesBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder addShapes( int index, cloud.prefab.domain.Prefab.ContextShape value) { if (shapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapesIsMutable(); shapes_.add(index, value); onChanged(); } else { shapesBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder addShapes( cloud.prefab.domain.Prefab.ContextShape.Builder builderForValue) { if (shapesBuilder_ == null) { ensureShapesIsMutable(); shapes_.add(builderForValue.build()); onChanged(); } else { shapesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder addShapes( int index, cloud.prefab.domain.Prefab.ContextShape.Builder builderForValue) { if (shapesBuilder_ == null) { ensureShapesIsMutable(); shapes_.add(index, builderForValue.build()); onChanged(); } else { shapesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder addAllShapes( java.lang.Iterable values) { if (shapesBuilder_ == null) { ensureShapesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shapes_); onChanged(); } else { shapesBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder clearShapes() { if (shapesBuilder_ == null) { shapes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { shapesBuilder_.clear(); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public Builder removeShapes(int index) { if (shapesBuilder_ == null) { ensureShapesIsMutable(); shapes_.remove(index); onChanged(); } else { shapesBuilder_.remove(index); } return this; } /** * repeated .prefab.ContextShape shapes = 1; */ public cloud.prefab.domain.Prefab.ContextShape.Builder getShapesBuilder( int index) { return getShapesFieldBuilder().getBuilder(index); } /** * repeated .prefab.ContextShape shapes = 1; */ public cloud.prefab.domain.Prefab.ContextShapeOrBuilder getShapesOrBuilder( int index) { if (shapesBuilder_ == null) { return shapes_.get(index); } else { return shapesBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.ContextShape shapes = 1; */ public java.util.List getShapesOrBuilderList() { if (shapesBuilder_ != null) { return shapesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shapes_); } } /** * repeated .prefab.ContextShape shapes = 1; */ public cloud.prefab.domain.Prefab.ContextShape.Builder addShapesBuilder() { return getShapesFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.ContextShape.getDefaultInstance()); } /** * repeated .prefab.ContextShape shapes = 1; */ public cloud.prefab.domain.Prefab.ContextShape.Builder addShapesBuilder( int index) { return getShapesFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.ContextShape.getDefaultInstance()); } /** * repeated .prefab.ContextShape shapes = 1; */ public java.util.List getShapesBuilderList() { return getShapesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ContextShape, cloud.prefab.domain.Prefab.ContextShape.Builder, cloud.prefab.domain.Prefab.ContextShapeOrBuilder> getShapesFieldBuilder() { if (shapesBuilder_ == null) { shapesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ContextShape, cloud.prefab.domain.Prefab.ContextShape.Builder, cloud.prefab.domain.Prefab.ContextShapeOrBuilder>( shapes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); shapes_ = null; } return shapesBuilder_; } private java.lang.Object namespace_ = ""; /** * optional string namespace = 2; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string namespace = 2; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string namespace = 2; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.ContextShapes) } // @@protoc_insertion_point(class_scope:prefab.ContextShapes) private static final cloud.prefab.domain.Prefab.ContextShapes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ContextShapes(); } public static cloud.prefab.domain.Prefab.ContextShapes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContextShapes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EvaluatedKeysOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.EvaluatedKeys) com.google.protobuf.MessageOrBuilder { /** * repeated string keys = 1; * @return A list containing the keys. */ java.util.List getKeysList(); /** * repeated string keys = 1; * @return The count of keys. */ int getKeysCount(); /** * repeated string keys = 1; * @param index The index of the element to return. * @return The keys at the given index. */ java.lang.String getKeys(int index); /** * repeated string keys = 1; * @param index The index of the value to return. * @return The bytes of the keys at the given index. */ com.google.protobuf.ByteString getKeysBytes(int index); /** * optional string namespace = 2; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** * optional string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * optional string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); } /** * Protobuf type {@code prefab.EvaluatedKeys} */ public static final class EvaluatedKeys extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.EvaluatedKeys) EvaluatedKeysOrBuilder { private static final long serialVersionUID = 0L; // Use EvaluatedKeys.newBuilder() to construct. private EvaluatedKeys(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvaluatedKeys() { keys_ = com.google.protobuf.LazyStringArrayList.emptyList(); namespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EvaluatedKeys(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedKeys_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedKeys_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.EvaluatedKeys.class, cloud.prefab.domain.Prefab.EvaluatedKeys.Builder.class); } private int bitField0_; public static final int KEYS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList keys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string keys = 1; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { return keys_; } /** * repeated string keys = 1; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** * repeated string keys = 1; * @param index The index of the element to return. * @return The keys at the given index. */ public java.lang.String getKeys(int index) { return keys_.get(index); } /** * repeated string keys = 1; * @param index The index of the value to return. * @return The bytes of the keys at the given index. */ public com.google.protobuf.ByteString getKeysBytes(int index) { return keys_.getByteString(index); } public static final int NAMESPACE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** * optional string namespace = 2; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string namespace = 2; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** * optional string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < keys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += computeStringSizeNoTag(keys_.getRaw(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.EvaluatedKeys)) { return super.equals(obj); } cloud.prefab.domain.Prefab.EvaluatedKeys other = (cloud.prefab.domain.Prefab.EvaluatedKeys) obj; if (!getKeysList() .equals(other.getKeysList())) return false; if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.EvaluatedKeys parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedKeys 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.EvaluatedKeys parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedKeys 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.EvaluatedKeys parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedKeys parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.EvaluatedKeys parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedKeys 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.EvaluatedKeys parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedKeys 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.EvaluatedKeys parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedKeys 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.EvaluatedKeys 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.EvaluatedKeys} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.EvaluatedKeys) cloud.prefab.domain.Prefab.EvaluatedKeysOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedKeys_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedKeys_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.EvaluatedKeys.class, cloud.prefab.domain.Prefab.EvaluatedKeys.Builder.class); } // Construct using cloud.prefab.domain.Prefab.EvaluatedKeys.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; keys_ = com.google.protobuf.LazyStringArrayList.emptyList(); namespace_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedKeys_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedKeys getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.EvaluatedKeys.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedKeys build() { cloud.prefab.domain.Prefab.EvaluatedKeys result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedKeys buildPartial() { cloud.prefab.domain.Prefab.EvaluatedKeys result = new cloud.prefab.domain.Prefab.EvaluatedKeys(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.EvaluatedKeys result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { keys_.makeImmutable(); result.keys_ = keys_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.namespace_ = namespace_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.EvaluatedKeys) { return mergeFrom((cloud.prefab.domain.Prefab.EvaluatedKeys)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.EvaluatedKeys other) { if (other == cloud.prefab.domain.Prefab.EvaluatedKeys.getDefaultInstance()) return this; if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ |= 0x00000001; } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.hasNamespace()) { namespace_ = other.namespace_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureKeysIsMutable(); keys_.add(s); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList keys_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureKeysIsMutable() { if (!keys_.isModifiable()) { keys_ = new com.google.protobuf.LazyStringArrayList(keys_); } bitField0_ |= 0x00000001; } /** * repeated string keys = 1; * @return A list containing the keys. */ public com.google.protobuf.ProtocolStringList getKeysList() { keys_.makeImmutable(); return keys_; } /** * repeated string keys = 1; * @return The count of keys. */ public int getKeysCount() { return keys_.size(); } /** * repeated string keys = 1; * @param index The index of the element to return. * @return The keys at the given index. */ public java.lang.String getKeys(int index) { return keys_.get(index); } /** * repeated string keys = 1; * @param index The index of the value to return. * @return The bytes of the keys at the given index. */ public com.google.protobuf.ByteString getKeysBytes(int index) { return keys_.getByteString(index); } /** * repeated string keys = 1; * @param index The index to set the value at. * @param value The keys to set. * @return This builder for chaining. */ public Builder setKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string keys = 1; * @param value The keys to add. * @return This builder for chaining. */ public Builder addKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string keys = 1; * @param values The keys to add. * @return This builder for chaining. */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string keys = 1; * @return This builder for chaining. */ public Builder clearKeys() { keys_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string keys = 1; * @param value The bytes of the keys to add. * @return This builder for chaining. */ public Builder addKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureKeysIsMutable(); keys_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * optional string namespace = 2; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string namespace = 2; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string namespace = 2; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * optional string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:prefab.EvaluatedKeys) } // @@protoc_insertion_point(class_scope:prefab.EvaluatedKeys) private static final cloud.prefab.domain.Prefab.EvaluatedKeys DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.EvaluatedKeys(); } public static cloud.prefab.domain.Prefab.EvaluatedKeys getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvaluatedKeys parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedKeys getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EvaluatedConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.EvaluatedConfig) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * int64 config_version = 2; * @return The configVersion. */ long getConfigVersion(); /** * .prefab.ConfigValue result = 3; * @return Whether the result field is set. */ boolean hasResult(); /** * .prefab.ConfigValue result = 3; * @return The result. */ cloud.prefab.domain.Prefab.ConfigValue getResult(); /** * .prefab.ConfigValue result = 3; */ cloud.prefab.domain.Prefab.ConfigValueOrBuilder getResultOrBuilder(); /** * .prefab.ContextSet context = 4; * @return Whether the context field is set. */ boolean hasContext(); /** * .prefab.ContextSet context = 4; * @return The context. */ cloud.prefab.domain.Prefab.ContextSet getContext(); /** * .prefab.ContextSet context = 4; */ cloud.prefab.domain.Prefab.ContextSetOrBuilder getContextOrBuilder(); /** * int64 timestamp = 5; * @return The timestamp. */ long getTimestamp(); } /** * Protobuf type {@code prefab.EvaluatedConfig} */ public static final class EvaluatedConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.EvaluatedConfig) EvaluatedConfigOrBuilder { private static final long serialVersionUID = 0L; // Use EvaluatedConfig.newBuilder() to construct. private EvaluatedConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvaluatedConfig() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EvaluatedConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.EvaluatedConfig.class, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 1; * @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 = 1; * @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 CONFIG_VERSION_FIELD_NUMBER = 2; private long configVersion_ = 0L; /** * int64 config_version = 2; * @return The configVersion. */ @java.lang.Override public long getConfigVersion() { return configVersion_; } public static final int RESULT_FIELD_NUMBER = 3; private cloud.prefab.domain.Prefab.ConfigValue result_; /** * .prefab.ConfigValue result = 3; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ConfigValue result = 3; * @return The result. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getResult() { return result_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : result_; } /** * .prefab.ConfigValue result = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getResultOrBuilder() { return result_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : result_; } public static final int CONTEXT_FIELD_NUMBER = 4; private cloud.prefab.domain.Prefab.ContextSet context_; /** * .prefab.ContextSet context = 4; * @return Whether the context field is set. */ @java.lang.Override public boolean hasContext() { return ((bitField0_ & 0x00000002) != 0); } /** * .prefab.ContextSet context = 4; * @return The context. */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet getContext() { return context_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : context_; } /** * .prefab.ContextSet context = 4; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSetOrBuilder getContextOrBuilder() { return context_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : context_; } public static final int TIMESTAMP_FIELD_NUMBER = 5; private long timestamp_ = 0L; /** * int64 timestamp = 5; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (configVersion_ != 0L) { output.writeInt64(2, configVersion_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getContext()); } if (timestamp_ != 0L) { output.writeInt64(5, timestamp_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (configVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, configVersion_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getResult()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getContext()); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, timestamp_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.EvaluatedConfig)) { return super.equals(obj); } cloud.prefab.domain.Prefab.EvaluatedConfig other = (cloud.prefab.domain.Prefab.EvaluatedConfig) obj; if (!getKey() .equals(other.getKey())) return false; if (getConfigVersion() != other.getConfigVersion()) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult() .equals(other.getResult())) return false; } if (hasContext() != other.hasContext()) return false; if (hasContext()) { if (!getContext() .equals(other.getContext())) return false; } if (getTimestamp() != other.getTimestamp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + CONFIG_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConfigVersion()); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.EvaluatedConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.EvaluatedConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig 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.EvaluatedConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.EvaluatedConfig) cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.EvaluatedConfig.class, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder.class); } // Construct using cloud.prefab.domain.Prefab.EvaluatedConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultFieldBuilder(); getContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; configVersion_ = 0L; result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } context_ = null; if (contextBuilder_ != null) { contextBuilder_.dispose(); contextBuilder_ = null; } timestamp_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfig_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfig getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.EvaluatedConfig.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfig build() { cloud.prefab.domain.Prefab.EvaluatedConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfig buildPartial() { cloud.prefab.domain.Prefab.EvaluatedConfig result = new cloud.prefab.domain.Prefab.EvaluatedConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.EvaluatedConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.configVersion_ = configVersion_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.timestamp_ = timestamp_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.EvaluatedConfig) { return mergeFrom((cloud.prefab.domain.Prefab.EvaluatedConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.EvaluatedConfig other) { if (other == cloud.prefab.domain.Prefab.EvaluatedConfig.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.getConfigVersion() != 0L) { setConfigVersion(other.getConfigVersion()); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { configVersion_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getContextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; * @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 = 1; * @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 = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long configVersion_ ; /** * int64 config_version = 2; * @return The configVersion. */ @java.lang.Override public long getConfigVersion() { return configVersion_; } /** * int64 config_version = 2; * @param value The configVersion to set. * @return This builder for chaining. */ public Builder setConfigVersion(long value) { configVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 config_version = 2; * @return This builder for chaining. */ public Builder clearConfigVersion() { bitField0_ = (bitField0_ & ~0x00000002); configVersion_ = 0L; onChanged(); return this; } private cloud.prefab.domain.Prefab.ConfigValue result_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> resultBuilder_; /** * .prefab.ConfigValue result = 3; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000004) != 0); } /** * .prefab.ConfigValue result = 3; * @return The result. */ public cloud.prefab.domain.Prefab.ConfigValue getResult() { if (resultBuilder_ == null) { return result_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .prefab.ConfigValue result = 3; */ public Builder setResult(cloud.prefab.domain.Prefab.ConfigValue value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .prefab.ConfigValue result = 3; */ public Builder setResult( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .prefab.ConfigValue result = 3; */ public Builder mergeResult(cloud.prefab.domain.Prefab.ConfigValue value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && result_ != null && result_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .prefab.ConfigValue result = 3; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000004); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .prefab.ConfigValue result = 3; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getResultBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .prefab.ConfigValue result = 3; */ public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : result_; } } /** * .prefab.ConfigValue result = 3; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private cloud.prefab.domain.Prefab.ContextSet context_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> contextBuilder_; /** * .prefab.ContextSet context = 4; * @return Whether the context field is set. */ public boolean hasContext() { return ((bitField0_ & 0x00000008) != 0); } /** * .prefab.ContextSet context = 4; * @return The context. */ public cloud.prefab.domain.Prefab.ContextSet getContext() { if (contextBuilder_ == null) { return context_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .prefab.ContextSet context = 4; */ public Builder setContext(cloud.prefab.domain.Prefab.ContextSet value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; } else { contextBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .prefab.ContextSet context = 4; */ public Builder setContext( cloud.prefab.domain.Prefab.ContextSet.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); } else { contextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .prefab.ContextSet context = 4; */ public Builder mergeContext(cloud.prefab.domain.Prefab.ContextSet value) { if (contextBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && context_ != null && context_ != cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) { getContextBuilder().mergeFrom(value); } else { context_ = value; } } else { contextBuilder_.mergeFrom(value); } if (context_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .prefab.ContextSet context = 4; */ public Builder clearContext() { bitField0_ = (bitField0_ & ~0x00000008); context_ = null; if (contextBuilder_ != null) { contextBuilder_.dispose(); contextBuilder_ = null; } onChanged(); return this; } /** * .prefab.ContextSet context = 4; */ public cloud.prefab.domain.Prefab.ContextSet.Builder getContextBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .prefab.ContextSet context = 4; */ public cloud.prefab.domain.Prefab.ContextSetOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : context_; } } /** * .prefab.ContextSet context = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long timestamp_ ; /** * int64 timestamp = 5; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 5; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * int64 timestamp = 5; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000010); timestamp_ = 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.EvaluatedConfig) } // @@protoc_insertion_point(class_scope:prefab.EvaluatedConfig) private static final cloud.prefab.domain.Prefab.EvaluatedConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.EvaluatedConfig(); } public static cloud.prefab.domain.Prefab.EvaluatedConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvaluatedConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EvaluatedConfigsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.EvaluatedConfigs) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.EvaluatedConfig configs = 1; */ java.util.List getConfigsList(); /** * repeated .prefab.EvaluatedConfig configs = 1; */ cloud.prefab.domain.Prefab.EvaluatedConfig getConfigs(int index); /** * repeated .prefab.EvaluatedConfig configs = 1; */ int getConfigsCount(); /** * repeated .prefab.EvaluatedConfig configs = 1; */ java.util.List getConfigsOrBuilderList(); /** * repeated .prefab.EvaluatedConfig configs = 1; */ cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder getConfigsOrBuilder( int index); } /** * Protobuf type {@code prefab.EvaluatedConfigs} */ public static final class EvaluatedConfigs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.EvaluatedConfigs) EvaluatedConfigsOrBuilder { private static final long serialVersionUID = 0L; // Use EvaluatedConfigs.newBuilder() to construct. private EvaluatedConfigs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvaluatedConfigs() { configs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EvaluatedConfigs(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfigs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfigs_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.EvaluatedConfigs.class, cloud.prefab.domain.Prefab.EvaluatedConfigs.Builder.class); } public static final int CONFIGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List configs_; /** * repeated .prefab.EvaluatedConfig configs = 1; */ @java.lang.Override public java.util.List getConfigsList() { return configs_; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ @java.lang.Override public java.util.List getConfigsOrBuilderList() { return configs_; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ @java.lang.Override public int getConfigsCount() { return configs_.size(); } /** * repeated .prefab.EvaluatedConfig configs = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfig getConfigs(int index) { return configs_.get(index); } /** * repeated .prefab.EvaluatedConfig configs = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder getConfigsOrBuilder( int index) { return configs_.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 < configs_.size(); i++) { output.writeMessage(1, configs_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < configs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, configs_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.EvaluatedConfigs)) { return super.equals(obj); } cloud.prefab.domain.Prefab.EvaluatedConfigs other = (cloud.prefab.domain.Prefab.EvaluatedConfigs) obj; if (!getConfigsList() .equals(other.getConfigsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConfigsCount() > 0) { hash = (37 * hash) + CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getConfigsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.EvaluatedConfigs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs 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.EvaluatedConfigs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs 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.EvaluatedConfigs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs 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.EvaluatedConfigs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs 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.EvaluatedConfigs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs 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.EvaluatedConfigs 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.EvaluatedConfigs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.EvaluatedConfigs) cloud.prefab.domain.Prefab.EvaluatedConfigsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfigs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfigs_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.EvaluatedConfigs.class, cloud.prefab.domain.Prefab.EvaluatedConfigs.Builder.class); } // Construct using cloud.prefab.domain.Prefab.EvaluatedConfigs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (configsBuilder_ == null) { configs_ = java.util.Collections.emptyList(); } else { configs_ = null; configsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_EvaluatedConfigs_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfigs getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.EvaluatedConfigs.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfigs build() { cloud.prefab.domain.Prefab.EvaluatedConfigs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfigs buildPartial() { cloud.prefab.domain.Prefab.EvaluatedConfigs result = new cloud.prefab.domain.Prefab.EvaluatedConfigs(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.EvaluatedConfigs result) { if (configsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { configs_ = java.util.Collections.unmodifiableList(configs_); bitField0_ = (bitField0_ & ~0x00000001); } result.configs_ = configs_; } else { result.configs_ = configsBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.EvaluatedConfigs result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.EvaluatedConfigs) { return mergeFrom((cloud.prefab.domain.Prefab.EvaluatedConfigs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.EvaluatedConfigs other) { if (other == cloud.prefab.domain.Prefab.EvaluatedConfigs.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.EvaluatedConfig m = input.readMessage( cloud.prefab.domain.Prefab.EvaluatedConfig.parser(), extensionRegistry); if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.add(m); } else { configsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List 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.EvaluatedConfig, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder, cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder> configsBuilder_; /** * repeated .prefab.EvaluatedConfig configs = 1; */ public java.util.List getConfigsList() { if (configsBuilder_ == null) { return java.util.Collections.unmodifiableList(configs_); } else { return configsBuilder_.getMessageList(); } } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public int getConfigsCount() { if (configsBuilder_ == null) { return configs_.size(); } else { return configsBuilder_.getCount(); } } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public cloud.prefab.domain.Prefab.EvaluatedConfig getConfigs(int index) { if (configsBuilder_ == null) { return configs_.get(index); } else { return configsBuilder_.getMessage(index); } } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public Builder setConfigs( int index, cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig configs = 1; */ public Builder setConfigs( int index, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder builderForValue) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.set(index, builderForValue.build()); onChanged(); } else { configsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public Builder addConfigs(cloud.prefab.domain.Prefab.EvaluatedConfig value) { if (configsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigsIsMutable(); configs_.add(value); onChanged(); } else { configsBuilder_.addMessage(value); } return this; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public Builder addConfigs( int index, cloud.prefab.domain.Prefab.EvaluatedConfig 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.EvaluatedConfig configs = 1; */ public Builder addConfigs( cloud.prefab.domain.Prefab.EvaluatedConfig.Builder builderForValue) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.add(builderForValue.build()); onChanged(); } else { configsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public Builder addConfigs( int index, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder builderForValue) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.add(index, builderForValue.build()); onChanged(); } else { configsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.EvaluatedConfig 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.EvaluatedConfig configs = 1; */ public Builder clearConfigs() { if (configsBuilder_ == null) { configs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { configsBuilder_.clear(); } return this; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public Builder removeConfigs(int index) { if (configsBuilder_ == null) { ensureConfigsIsMutable(); configs_.remove(index); onChanged(); } else { configsBuilder_.remove(index); } return this; } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public cloud.prefab.domain.Prefab.EvaluatedConfig.Builder getConfigsBuilder( int index) { return getConfigsFieldBuilder().getBuilder(index); } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder getConfigsOrBuilder( int index) { if (configsBuilder_ == null) { return configs_.get(index); } else { return configsBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public java.util.List getConfigsOrBuilderList() { if (configsBuilder_ != null) { return configsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(configs_); } } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public cloud.prefab.domain.Prefab.EvaluatedConfig.Builder addConfigsBuilder() { return getConfigsFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.EvaluatedConfig.getDefaultInstance()); } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public cloud.prefab.domain.Prefab.EvaluatedConfig.Builder addConfigsBuilder( int index) { return getConfigsFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.EvaluatedConfig.getDefaultInstance()); } /** * repeated .prefab.EvaluatedConfig configs = 1; */ public java.util.List getConfigsBuilderList() { return getConfigsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.EvaluatedConfig, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder, cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder> getConfigsFieldBuilder() { if (configsBuilder_ == null) { configsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.EvaluatedConfig, cloud.prefab.domain.Prefab.EvaluatedConfig.Builder, cloud.prefab.domain.Prefab.EvaluatedConfigOrBuilder>( configs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); configs_ = null; } return configsBuilder_; } @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.EvaluatedConfigs) } // @@protoc_insertion_point(class_scope:prefab.EvaluatedConfigs) private static final cloud.prefab.domain.Prefab.EvaluatedConfigs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.EvaluatedConfigs(); } public static cloud.prefab.domain.Prefab.EvaluatedConfigs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvaluatedConfigs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.EvaluatedConfigs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigEvaluationCounterOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigEvaluationCounter) com.google.protobuf.MessageOrBuilder { /** * int64 count = 1; * @return The count. */ long getCount(); /** * optional int64 config_id = 2; * @return Whether the configId field is set. */ boolean hasConfigId(); /** * optional int64 config_id = 2; * @return The configId. */ long getConfigId(); /** *
     * index into the allowed-values list in the config
     * 
* * optional uint32 selected_index = 3; * @return Whether the selectedIndex field is set. */ boolean hasSelectedIndex(); /** *
     * index into the allowed-values list in the config
     * 
* * optional uint32 selected_index = 3; * @return The selectedIndex. */ int getSelectedIndex(); /** * optional .prefab.ConfigValue selected_value = 4; * @return Whether the selectedValue field is set. */ boolean hasSelectedValue(); /** * optional .prefab.ConfigValue selected_value = 4; * @return The selectedValue. */ cloud.prefab.domain.Prefab.ConfigValue getSelectedValue(); /** * optional .prefab.ConfigValue selected_value = 4; */ cloud.prefab.domain.Prefab.ConfigValueOrBuilder getSelectedValueOrBuilder(); /** *
     * which row matched
     * 
* * optional uint32 config_row_index = 5; * @return Whether the configRowIndex field is set. */ boolean hasConfigRowIndex(); /** *
     * which row matched
     * 
* * optional uint32 config_row_index = 5; * @return The configRowIndex. */ int getConfigRowIndex(); /** *
     * which ConditionalValue in the row matched?
     * 
* * optional uint32 conditional_value_index = 6; * @return Whether the conditionalValueIndex field is set. */ boolean hasConditionalValueIndex(); /** *
     * which ConditionalValue in the row matched?
     * 
* * optional uint32 conditional_value_index = 6; * @return The conditionalValueIndex. */ int getConditionalValueIndex(); /** *
     * index into the weighted value array
     * 
* * optional uint32 weighted_value_index = 7; * @return Whether the weightedValueIndex field is set. */ boolean hasWeightedValueIndex(); /** *
     * index into the weighted value array
     * 
* * optional uint32 weighted_value_index = 7; * @return The weightedValueIndex. */ int getWeightedValueIndex(); /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return The reason. */ cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason getReason(); } /** * Protobuf type {@code prefab.ConfigEvaluationCounter} */ public static final class ConfigEvaluationCounter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigEvaluationCounter) ConfigEvaluationCounterOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigEvaluationCounter.newBuilder() to construct. private ConfigEvaluationCounter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigEvaluationCounter() { reason_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigEvaluationCounter(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationCounter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationCounter_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationCounter.class, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder.class); } /** * Protobuf enum {@code prefab.ConfigEvaluationCounter.Reason} */ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; 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 Reason 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 Reason forNumber(int value) { switch (value) { case 0: return UNKNOWN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Reason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Reason findValueByNumber(int number) { return Reason.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.ConfigEvaluationCounter.getDescriptor().getEnumTypes().get(0); } private static final Reason[] VALUES = values(); public static Reason 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 Reason(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:prefab.ConfigEvaluationCounter.Reason) } private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private long count_ = 0L; /** * int64 count = 1; * @return The count. */ @java.lang.Override public long getCount() { return count_; } public static final int CONFIG_ID_FIELD_NUMBER = 2; private long configId_ = 0L; /** * optional int64 config_id = 2; * @return Whether the configId field is set. */ @java.lang.Override public boolean hasConfigId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 config_id = 2; * @return The configId. */ @java.lang.Override public long getConfigId() { return configId_; } public static final int SELECTED_INDEX_FIELD_NUMBER = 3; private int selectedIndex_ = 0; /** *
     * index into the allowed-values list in the config
     * 
* * optional uint32 selected_index = 3; * @return Whether the selectedIndex field is set. */ @java.lang.Override public boolean hasSelectedIndex() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * index into the allowed-values list in the config
     * 
* * optional uint32 selected_index = 3; * @return The selectedIndex. */ @java.lang.Override public int getSelectedIndex() { return selectedIndex_; } public static final int SELECTED_VALUE_FIELD_NUMBER = 4; private cloud.prefab.domain.Prefab.ConfigValue selectedValue_; /** * optional .prefab.ConfigValue selected_value = 4; * @return Whether the selectedValue field is set. */ @java.lang.Override public boolean hasSelectedValue() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .prefab.ConfigValue selected_value = 4; * @return The selectedValue. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValue getSelectedValue() { return selectedValue_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : selectedValue_; } /** * optional .prefab.ConfigValue selected_value = 4; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getSelectedValueOrBuilder() { return selectedValue_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : selectedValue_; } public static final int CONFIG_ROW_INDEX_FIELD_NUMBER = 5; private int configRowIndex_ = 0; /** *
     * which row matched
     * 
* * optional uint32 config_row_index = 5; * @return Whether the configRowIndex field is set. */ @java.lang.Override public boolean hasConfigRowIndex() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * which row matched
     * 
* * optional uint32 config_row_index = 5; * @return The configRowIndex. */ @java.lang.Override public int getConfigRowIndex() { return configRowIndex_; } public static final int CONDITIONAL_VALUE_INDEX_FIELD_NUMBER = 6; private int conditionalValueIndex_ = 0; /** *
     * which ConditionalValue in the row matched?
     * 
* * optional uint32 conditional_value_index = 6; * @return Whether the conditionalValueIndex field is set. */ @java.lang.Override public boolean hasConditionalValueIndex() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * which ConditionalValue in the row matched?
     * 
* * optional uint32 conditional_value_index = 6; * @return The conditionalValueIndex. */ @java.lang.Override public int getConditionalValueIndex() { return conditionalValueIndex_; } public static final int WEIGHTED_VALUE_INDEX_FIELD_NUMBER = 7; private int weightedValueIndex_ = 0; /** *
     * index into the weighted value array
     * 
* * optional uint32 weighted_value_index = 7; * @return Whether the weightedValueIndex field is set. */ @java.lang.Override public boolean hasWeightedValueIndex() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * index into the weighted value array
     * 
* * optional uint32 weighted_value_index = 7; * @return The weightedValueIndex. */ @java.lang.Override public int getWeightedValueIndex() { return weightedValueIndex_; } public static final int REASON_FIELD_NUMBER = 8; private int reason_ = 0; /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return The reason. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason getReason() { cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason result = cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason.forNumber(reason_); return result == null ? cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason.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 (count_ != 0L) { output.writeInt64(1, count_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, configId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(3, selectedIndex_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSelectedValue()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(5, configRowIndex_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(6, conditionalValueIndex_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(7, weightedValueIndex_); } if (reason_ != cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason.UNKNOWN.getNumber()) { output.writeEnum(8, reason_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, count_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, configId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, selectedIndex_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSelectedValue()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, configRowIndex_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, conditionalValueIndex_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, weightedValueIndex_); } if (reason_ != cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigEvaluationCounter)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigEvaluationCounter other = (cloud.prefab.domain.Prefab.ConfigEvaluationCounter) obj; if (getCount() != other.getCount()) return false; if (hasConfigId() != other.hasConfigId()) return false; if (hasConfigId()) { if (getConfigId() != other.getConfigId()) return false; } if (hasSelectedIndex() != other.hasSelectedIndex()) return false; if (hasSelectedIndex()) { if (getSelectedIndex() != other.getSelectedIndex()) return false; } if (hasSelectedValue() != other.hasSelectedValue()) return false; if (hasSelectedValue()) { if (!getSelectedValue() .equals(other.getSelectedValue())) return false; } if (hasConfigRowIndex() != other.hasConfigRowIndex()) return false; if (hasConfigRowIndex()) { if (getConfigRowIndex() != other.getConfigRowIndex()) return false; } if (hasConditionalValueIndex() != other.hasConditionalValueIndex()) return false; if (hasConditionalValueIndex()) { if (getConditionalValueIndex() != other.getConditionalValueIndex()) return false; } if (hasWeightedValueIndex() != other.hasWeightedValueIndex()) return false; if (hasWeightedValueIndex()) { if (getWeightedValueIndex() != other.getWeightedValueIndex()) return false; } if (reason_ != other.reason_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); if (hasConfigId()) { hash = (37 * hash) + CONFIG_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConfigId()); } if (hasSelectedIndex()) { hash = (37 * hash) + SELECTED_INDEX_FIELD_NUMBER; hash = (53 * hash) + getSelectedIndex(); } if (hasSelectedValue()) { hash = (37 * hash) + SELECTED_VALUE_FIELD_NUMBER; hash = (53 * hash) + getSelectedValue().hashCode(); } if (hasConfigRowIndex()) { hash = (37 * hash) + CONFIG_ROW_INDEX_FIELD_NUMBER; hash = (53 * hash) + getConfigRowIndex(); } if (hasConditionalValueIndex()) { hash = (37 * hash) + CONDITIONAL_VALUE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getConditionalValueIndex(); } if (hasWeightedValueIndex()) { hash = (37 * hash) + WEIGHTED_VALUE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getWeightedValueIndex(); } hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + reason_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter 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.ConfigEvaluationCounter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter 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.ConfigEvaluationCounter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter 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.ConfigEvaluationCounter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter 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.ConfigEvaluationCounter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter 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.ConfigEvaluationCounter 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.ConfigEvaluationCounter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigEvaluationCounter) cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationCounter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationCounter_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationCounter.class, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigEvaluationCounter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSelectedValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; count_ = 0L; configId_ = 0L; selectedIndex_ = 0; selectedValue_ = null; if (selectedValueBuilder_ != null) { selectedValueBuilder_.dispose(); selectedValueBuilder_ = null; } configRowIndex_ = 0; conditionalValueIndex_ = 0; weightedValueIndex_ = 0; reason_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationCounter_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigEvaluationCounter.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter build() { cloud.prefab.domain.Prefab.ConfigEvaluationCounter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter buildPartial() { cloud.prefab.domain.Prefab.ConfigEvaluationCounter result = new cloud.prefab.domain.Prefab.ConfigEvaluationCounter(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigEvaluationCounter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.count_ = count_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.configId_ = configId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.selectedIndex_ = selectedIndex_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.selectedValue_ = selectedValueBuilder_ == null ? selectedValue_ : selectedValueBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.configRowIndex_ = configRowIndex_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.conditionalValueIndex_ = conditionalValueIndex_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.weightedValueIndex_ = weightedValueIndex_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.reason_ = reason_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ConfigEvaluationCounter) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigEvaluationCounter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigEvaluationCounter other) { if (other == cloud.prefab.domain.Prefab.ConfigEvaluationCounter.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } if (other.hasConfigId()) { setConfigId(other.getConfigId()); } if (other.hasSelectedIndex()) { setSelectedIndex(other.getSelectedIndex()); } if (other.hasSelectedValue()) { mergeSelectedValue(other.getSelectedValue()); } if (other.hasConfigRowIndex()) { setConfigRowIndex(other.getConfigRowIndex()); } if (other.hasConditionalValueIndex()) { setConditionalValueIndex(other.getConditionalValueIndex()); } if (other.hasWeightedValueIndex()) { setWeightedValueIndex(other.getWeightedValueIndex()); } if (other.reason_ != 0) { setReasonValue(other.getReasonValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { count_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { configId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { selectedIndex_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getSelectedValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { configRowIndex_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { conditionalValueIndex_ = input.readUInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { weightedValueIndex_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { reason_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long count_ ; /** * int64 count = 1; * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** * int64 count = 1; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 count = 1; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); count_ = 0L; onChanged(); return this; } private long configId_ ; /** * optional int64 config_id = 2; * @return Whether the configId field is set. */ @java.lang.Override public boolean hasConfigId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 config_id = 2; * @return The configId. */ @java.lang.Override public long getConfigId() { return configId_; } /** * optional int64 config_id = 2; * @param value The configId to set. * @return This builder for chaining. */ public Builder setConfigId(long value) { configId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int64 config_id = 2; * @return This builder for chaining. */ public Builder clearConfigId() { bitField0_ = (bitField0_ & ~0x00000002); configId_ = 0L; onChanged(); return this; } private int selectedIndex_ ; /** *
       * index into the allowed-values list in the config
       * 
* * optional uint32 selected_index = 3; * @return Whether the selectedIndex field is set. */ @java.lang.Override public boolean hasSelectedIndex() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * index into the allowed-values list in the config
       * 
* * optional uint32 selected_index = 3; * @return The selectedIndex. */ @java.lang.Override public int getSelectedIndex() { return selectedIndex_; } /** *
       * index into the allowed-values list in the config
       * 
* * optional uint32 selected_index = 3; * @param value The selectedIndex to set. * @return This builder for chaining. */ public Builder setSelectedIndex(int value) { selectedIndex_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * index into the allowed-values list in the config
       * 
* * optional uint32 selected_index = 3; * @return This builder for chaining. */ public Builder clearSelectedIndex() { bitField0_ = (bitField0_ & ~0x00000004); selectedIndex_ = 0; onChanged(); return this; } private cloud.prefab.domain.Prefab.ConfigValue selectedValue_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> selectedValueBuilder_; /** * optional .prefab.ConfigValue selected_value = 4; * @return Whether the selectedValue field is set. */ public boolean hasSelectedValue() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .prefab.ConfigValue selected_value = 4; * @return The selectedValue. */ public cloud.prefab.domain.Prefab.ConfigValue getSelectedValue() { if (selectedValueBuilder_ == null) { return selectedValue_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : selectedValue_; } else { return selectedValueBuilder_.getMessage(); } } /** * optional .prefab.ConfigValue selected_value = 4; */ public Builder setSelectedValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (selectedValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selectedValue_ = value; } else { selectedValueBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .prefab.ConfigValue selected_value = 4; */ public Builder setSelectedValue( cloud.prefab.domain.Prefab.ConfigValue.Builder builderForValue) { if (selectedValueBuilder_ == null) { selectedValue_ = builderForValue.build(); } else { selectedValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .prefab.ConfigValue selected_value = 4; */ public Builder mergeSelectedValue(cloud.prefab.domain.Prefab.ConfigValue value) { if (selectedValueBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && selectedValue_ != null && selectedValue_ != cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance()) { getSelectedValueBuilder().mergeFrom(value); } else { selectedValue_ = value; } } else { selectedValueBuilder_.mergeFrom(value); } if (selectedValue_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * optional .prefab.ConfigValue selected_value = 4; */ public Builder clearSelectedValue() { bitField0_ = (bitField0_ & ~0x00000008); selectedValue_ = null; if (selectedValueBuilder_ != null) { selectedValueBuilder_.dispose(); selectedValueBuilder_ = null; } onChanged(); return this; } /** * optional .prefab.ConfigValue selected_value = 4; */ public cloud.prefab.domain.Prefab.ConfigValue.Builder getSelectedValueBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSelectedValueFieldBuilder().getBuilder(); } /** * optional .prefab.ConfigValue selected_value = 4; */ public cloud.prefab.domain.Prefab.ConfigValueOrBuilder getSelectedValueOrBuilder() { if (selectedValueBuilder_ != null) { return selectedValueBuilder_.getMessageOrBuilder(); } else { return selectedValue_ == null ? cloud.prefab.domain.Prefab.ConfigValue.getDefaultInstance() : selectedValue_; } } /** * optional .prefab.ConfigValue selected_value = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder> getSelectedValueFieldBuilder() { if (selectedValueBuilder_ == null) { selectedValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigValue, cloud.prefab.domain.Prefab.ConfigValue.Builder, cloud.prefab.domain.Prefab.ConfigValueOrBuilder>( getSelectedValue(), getParentForChildren(), isClean()); selectedValue_ = null; } return selectedValueBuilder_; } private int configRowIndex_ ; /** *
       * which row matched
       * 
* * optional uint32 config_row_index = 5; * @return Whether the configRowIndex field is set. */ @java.lang.Override public boolean hasConfigRowIndex() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * which row matched
       * 
* * optional uint32 config_row_index = 5; * @return The configRowIndex. */ @java.lang.Override public int getConfigRowIndex() { return configRowIndex_; } /** *
       * which row matched
       * 
* * optional uint32 config_row_index = 5; * @param value The configRowIndex to set. * @return This builder for chaining. */ public Builder setConfigRowIndex(int value) { configRowIndex_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * which row matched
       * 
* * optional uint32 config_row_index = 5; * @return This builder for chaining. */ public Builder clearConfigRowIndex() { bitField0_ = (bitField0_ & ~0x00000010); configRowIndex_ = 0; onChanged(); return this; } private int conditionalValueIndex_ ; /** *
       * which ConditionalValue in the row matched?
       * 
* * optional uint32 conditional_value_index = 6; * @return Whether the conditionalValueIndex field is set. */ @java.lang.Override public boolean hasConditionalValueIndex() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * which ConditionalValue in the row matched?
       * 
* * optional uint32 conditional_value_index = 6; * @return The conditionalValueIndex. */ @java.lang.Override public int getConditionalValueIndex() { return conditionalValueIndex_; } /** *
       * which ConditionalValue in the row matched?
       * 
* * optional uint32 conditional_value_index = 6; * @param value The conditionalValueIndex to set. * @return This builder for chaining. */ public Builder setConditionalValueIndex(int value) { conditionalValueIndex_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * which ConditionalValue in the row matched?
       * 
* * optional uint32 conditional_value_index = 6; * @return This builder for chaining. */ public Builder clearConditionalValueIndex() { bitField0_ = (bitField0_ & ~0x00000020); conditionalValueIndex_ = 0; onChanged(); return this; } private int weightedValueIndex_ ; /** *
       * index into the weighted value array
       * 
* * optional uint32 weighted_value_index = 7; * @return Whether the weightedValueIndex field is set. */ @java.lang.Override public boolean hasWeightedValueIndex() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * index into the weighted value array
       * 
* * optional uint32 weighted_value_index = 7; * @return The weightedValueIndex. */ @java.lang.Override public int getWeightedValueIndex() { return weightedValueIndex_; } /** *
       * index into the weighted value array
       * 
* * optional uint32 weighted_value_index = 7; * @param value The weightedValueIndex to set. * @return This builder for chaining. */ public Builder setWeightedValueIndex(int value) { weightedValueIndex_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * index into the weighted value array
       * 
* * optional uint32 weighted_value_index = 7; * @return This builder for chaining. */ public Builder clearWeightedValueIndex() { bitField0_ = (bitField0_ & ~0x00000040); weightedValueIndex_ = 0; onChanged(); return this; } private int reason_ = 0; /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { reason_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return The reason. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason getReason() { cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason result = cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason.forNumber(reason_); return result == null ? cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason.UNRECOGNIZED : result; } /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @param value The reason to set. * @return This builder for chaining. */ public Builder setReason(cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Reason value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; reason_ = value.getNumber(); onChanged(); return this; } /** * .prefab.ConfigEvaluationCounter.Reason reason = 8; * @return This builder for chaining. */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000080); reason_ = 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.ConfigEvaluationCounter) } // @@protoc_insertion_point(class_scope:prefab.ConfigEvaluationCounter) private static final cloud.prefab.domain.Prefab.ConfigEvaluationCounter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigEvaluationCounter(); } public static cloud.prefab.domain.Prefab.ConfigEvaluationCounter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigEvaluationCounter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigEvaluationSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigEvaluationSummary) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * type of config eval
     * 
* * .prefab.ConfigType type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * type of config eval
     * 
* * .prefab.ConfigType type = 2; * @return The type. */ cloud.prefab.domain.Prefab.ConfigType getType(); /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ java.util.List getCountersList(); /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ cloud.prefab.domain.Prefab.ConfigEvaluationCounter getCounters(int index); /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ int getCountersCount(); /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ java.util.List getCountersOrBuilderList(); /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder getCountersOrBuilder( int index); } /** * Protobuf type {@code prefab.ConfigEvaluationSummary} */ public static final class ConfigEvaluationSummary extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigEvaluationSummary) ConfigEvaluationSummaryOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigEvaluationSummary.newBuilder() to construct. private ConfigEvaluationSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigEvaluationSummary() { key_ = ""; type_ = 0; counters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigEvaluationSummary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationSummary.class, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 1; * @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 = 1; * @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 TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** *
     * type of config eval
     * 
* * .prefab.ConfigType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * type of config eval
     * 
* * .prefab.ConfigType type = 2; * @return The type. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getType() { cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(type_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } public static final int COUNTERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List counters_; /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ @java.lang.Override public java.util.List getCountersList() { return counters_; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ @java.lang.Override public java.util.List getCountersOrBuilderList() { return counters_; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ @java.lang.Override public int getCountersCount() { return counters_.size(); } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounter getCounters(int index) { return counters_.get(index); } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder getCountersOrBuilder( int index) { return counters_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (type_ != cloud.prefab.domain.Prefab.ConfigType.NOT_SET_CONFIG_TYPE.getNumber()) { output.writeEnum(2, type_); } for (int i = 0; i < counters_.size(); i++) { output.writeMessage(3, counters_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (type_ != cloud.prefab.domain.Prefab.ConfigType.NOT_SET_CONFIG_TYPE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } for (int i = 0; i < counters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, counters_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigEvaluationSummary)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigEvaluationSummary other = (cloud.prefab.domain.Prefab.ConfigEvaluationSummary) obj; if (!getKey() .equals(other.getKey())) return false; if (type_ != other.type_) return false; if (!getCountersList() .equals(other.getCountersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (getCountersCount() > 0) { hash = (37 * hash) + COUNTERS_FIELD_NUMBER; hash = (53 * hash) + getCountersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary 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.ConfigEvaluationSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary 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.ConfigEvaluationSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary 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.ConfigEvaluationSummary parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary 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.ConfigEvaluationSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary 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.ConfigEvaluationSummary 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.ConfigEvaluationSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigEvaluationSummary) cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationSummary.class, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigEvaluationSummary.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; type_ = 0; if (countersBuilder_ == null) { counters_ = java.util.Collections.emptyList(); } else { counters_ = null; countersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummary_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummary getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigEvaluationSummary.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummary build() { cloud.prefab.domain.Prefab.ConfigEvaluationSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummary buildPartial() { cloud.prefab.domain.Prefab.ConfigEvaluationSummary result = new cloud.prefab.domain.Prefab.ConfigEvaluationSummary(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ConfigEvaluationSummary result) { if (countersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { counters_ = java.util.Collections.unmodifiableList(counters_); bitField0_ = (bitField0_ & ~0x00000004); } result.counters_ = counters_; } else { result.counters_ = countersBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigEvaluationSummary result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } } @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.ConfigEvaluationSummary) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigEvaluationSummary)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigEvaluationSummary other) { if (other == cloud.prefab.domain.Prefab.ConfigEvaluationSummary.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (countersBuilder_ == null) { if (!other.counters_.isEmpty()) { if (counters_.isEmpty()) { counters_ = other.counters_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCountersIsMutable(); counters_.addAll(other.counters_); } onChanged(); } } else { if (!other.counters_.isEmpty()) { if (countersBuilder_.isEmpty()) { countersBuilder_.dispose(); countersBuilder_ = null; counters_ = other.counters_; bitField0_ = (bitField0_ & ~0x00000004); countersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCountersFieldBuilder() : null; } else { countersBuilder_.addAllMessages(other.counters_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { cloud.prefab.domain.Prefab.ConfigEvaluationCounter m = input.readMessage( cloud.prefab.domain.Prefab.ConfigEvaluationCounter.parser(), extensionRegistry); if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.add(m); } else { countersBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; * @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 = 1; * @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 = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int type_ = 0; /** *
       * type of config eval
       * 
* * .prefab.ConfigType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * type of config eval
       * 
* * .prefab.ConfigType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * type of config eval
       * 
* * .prefab.ConfigType type = 2; * @return The type. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigType getType() { cloud.prefab.domain.Prefab.ConfigType result = cloud.prefab.domain.Prefab.ConfigType.forNumber(type_); return result == null ? cloud.prefab.domain.Prefab.ConfigType.UNRECOGNIZED : result; } /** *
       * type of config eval
       * 
* * .prefab.ConfigType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(cloud.prefab.domain.Prefab.ConfigType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** *
       * type of config eval
       * 
* * .prefab.ConfigType type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private java.util.List counters_ = java.util.Collections.emptyList(); private void ensureCountersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { counters_ = new java.util.ArrayList(counters_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationCounter, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder> countersBuilder_; /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public java.util.List getCountersList() { if (countersBuilder_ == null) { return java.util.Collections.unmodifiableList(counters_); } else { return countersBuilder_.getMessageList(); } } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public int getCountersCount() { if (countersBuilder_ == null) { return counters_.size(); } else { return countersBuilder_.getCount(); } } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationCounter getCounters(int index) { if (countersBuilder_ == null) { return counters_.get(index); } else { return countersBuilder_.getMessage(index); } } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder setCounters( int index, cloud.prefab.domain.Prefab.ConfigEvaluationCounter value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountersIsMutable(); counters_.set(index, value); onChanged(); } else { countersBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder setCounters( int index, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder builderForValue) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.set(index, builderForValue.build()); onChanged(); } else { countersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder addCounters(cloud.prefab.domain.Prefab.ConfigEvaluationCounter value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountersIsMutable(); counters_.add(value); onChanged(); } else { countersBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder addCounters( int index, cloud.prefab.domain.Prefab.ConfigEvaluationCounter value) { if (countersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCountersIsMutable(); counters_.add(index, value); onChanged(); } else { countersBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder addCounters( cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder builderForValue) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.add(builderForValue.build()); onChanged(); } else { countersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder addCounters( int index, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder builderForValue) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.add(index, builderForValue.build()); onChanged(); } else { countersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder addAllCounters( java.lang.Iterable values) { if (countersBuilder_ == null) { ensureCountersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, counters_); onChanged(); } else { countersBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder clearCounters() { if (countersBuilder_ == null) { counters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { countersBuilder_.clear(); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public Builder removeCounters(int index) { if (countersBuilder_ == null) { ensureCountersIsMutable(); counters_.remove(index); onChanged(); } else { countersBuilder_.remove(index); } return this; } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder getCountersBuilder( int index) { return getCountersFieldBuilder().getBuilder(index); } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder getCountersOrBuilder( int index) { if (countersBuilder_ == null) { return counters_.get(index); } else { return countersBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public java.util.List getCountersOrBuilderList() { if (countersBuilder_ != null) { return countersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(counters_); } } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder addCountersBuilder() { return getCountersFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.ConfigEvaluationCounter.getDefaultInstance()); } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder addCountersBuilder( int index) { return getCountersFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.getDefaultInstance()); } /** * repeated .prefab.ConfigEvaluationCounter counters = 3; */ public java.util.List getCountersBuilderList() { return getCountersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationCounter, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder> getCountersFieldBuilder() { if (countersBuilder_ == null) { countersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationCounter, cloud.prefab.domain.Prefab.ConfigEvaluationCounter.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationCounterOrBuilder>( counters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); counters_ = null; } return countersBuilder_; } @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.ConfigEvaluationSummary) } // @@protoc_insertion_point(class_scope:prefab.ConfigEvaluationSummary) private static final cloud.prefab.domain.Prefab.ConfigEvaluationSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigEvaluationSummary(); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummary getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigEvaluationSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigEvaluationSummariesOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ConfigEvaluationSummaries) com.google.protobuf.MessageOrBuilder { /** * int64 start = 1; * @return The start. */ long getStart(); /** * int64 end = 2; * @return The end. */ long getEnd(); /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ java.util.List getSummariesList(); /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ cloud.prefab.domain.Prefab.ConfigEvaluationSummary getSummaries(int index); /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ int getSummariesCount(); /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ java.util.List getSummariesOrBuilderList(); /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder getSummariesOrBuilder( int index); } /** * Protobuf type {@code prefab.ConfigEvaluationSummaries} */ public static final class ConfigEvaluationSummaries extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ConfigEvaluationSummaries) ConfigEvaluationSummariesOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigEvaluationSummaries.newBuilder() to construct. private ConfigEvaluationSummaries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigEvaluationSummaries() { summaries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigEvaluationSummaries(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummaries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummaries_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.class, cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** * int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** * int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } public static final int SUMMARIES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List summaries_; /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ @java.lang.Override public java.util.List getSummariesList() { return summaries_; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ @java.lang.Override public java.util.List getSummariesOrBuilderList() { return summaries_; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ @java.lang.Override public int getSummariesCount() { return summaries_.size(); } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummary getSummaries(int index) { return summaries_.get(index); } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder getSummariesOrBuilder( int index) { return summaries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (start_ != 0L) { output.writeInt64(1, start_); } if (end_ != 0L) { output.writeInt64(2, end_); } for (int i = 0; i < summaries_.size(); i++) { output.writeMessage(3, summaries_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, start_); } if (end_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, end_); } for (int i = 0; i < summaries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, summaries_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ConfigEvaluationSummaries)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ConfigEvaluationSummaries other = (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) obj; if (getStart() != other.getStart()) return false; if (getEnd() != other.getEnd()) return false; if (!getSummariesList() .equals(other.getSummariesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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()); if (getSummariesCount() > 0) { hash = (37 * hash) + SUMMARIES_FIELD_NUMBER; hash = (53 * hash) + getSummariesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries 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.ConfigEvaluationSummaries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries 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.ConfigEvaluationSummaries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries 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.ConfigEvaluationSummaries parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries 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.ConfigEvaluationSummaries parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries 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.ConfigEvaluationSummaries 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.ConfigEvaluationSummaries} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ConfigEvaluationSummaries) cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummaries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummaries_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.class, cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0L; end_ = 0L; if (summariesBuilder_ == null) { summaries_ = java.util.Collections.emptyList(); } else { summaries_ = null; summariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ConfigEvaluationSummaries_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries build() { cloud.prefab.domain.Prefab.ConfigEvaluationSummaries result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries buildPartial() { cloud.prefab.domain.Prefab.ConfigEvaluationSummaries result = new cloud.prefab.domain.Prefab.ConfigEvaluationSummaries(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ConfigEvaluationSummaries result) { if (summariesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { summaries_ = java.util.Collections.unmodifiableList(summaries_); bitField0_ = (bitField0_ & ~0x00000004); } result.summaries_ = summaries_; } else { result.summaries_ = summariesBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ConfigEvaluationSummaries result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; } } @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.ConfigEvaluationSummaries) { return mergeFrom((cloud.prefab.domain.Prefab.ConfigEvaluationSummaries)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ConfigEvaluationSummaries other) { if (other == cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance()) return this; if (other.getStart() != 0L) { setStart(other.getStart()); } if (other.getEnd() != 0L) { setEnd(other.getEnd()); } if (summariesBuilder_ == null) { if (!other.summaries_.isEmpty()) { if (summaries_.isEmpty()) { summaries_ = other.summaries_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSummariesIsMutable(); summaries_.addAll(other.summaries_); } onChanged(); } } else { if (!other.summaries_.isEmpty()) { if (summariesBuilder_.isEmpty()) { summariesBuilder_.dispose(); summariesBuilder_ = null; summaries_ = other.summaries_; bitField0_ = (bitField0_ & ~0x00000004); summariesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSummariesFieldBuilder() : null; } else { summariesBuilder_.addAllMessages(other.summaries_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { start_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { end_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { cloud.prefab.domain.Prefab.ConfigEvaluationSummary m = input.readMessage( cloud.prefab.domain.Prefab.ConfigEvaluationSummary.parser(), extensionRegistry); if (summariesBuilder_ == null) { ensureSummariesIsMutable(); summaries_.add(m); } else { summariesBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long start_ ; /** * int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** * int64 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0L; onChanged(); return this; } private long end_ ; /** * int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } /** * int64 end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0L; onChanged(); return this; } private java.util.List summaries_ = java.util.Collections.emptyList(); private void ensureSummariesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { summaries_ = new java.util.ArrayList(summaries_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationSummary, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder> summariesBuilder_; /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public java.util.List getSummariesList() { if (summariesBuilder_ == null) { return java.util.Collections.unmodifiableList(summaries_); } else { return summariesBuilder_.getMessageList(); } } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public int getSummariesCount() { if (summariesBuilder_ == null) { return summaries_.size(); } else { return summariesBuilder_.getCount(); } } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationSummary getSummaries(int index) { if (summariesBuilder_ == null) { return summaries_.get(index); } else { return summariesBuilder_.getMessage(index); } } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder setSummaries( int index, cloud.prefab.domain.Prefab.ConfigEvaluationSummary value) { if (summariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSummariesIsMutable(); summaries_.set(index, value); onChanged(); } else { summariesBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder setSummaries( int index, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder builderForValue) { if (summariesBuilder_ == null) { ensureSummariesIsMutable(); summaries_.set(index, builderForValue.build()); onChanged(); } else { summariesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder addSummaries(cloud.prefab.domain.Prefab.ConfigEvaluationSummary value) { if (summariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSummariesIsMutable(); summaries_.add(value); onChanged(); } else { summariesBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder addSummaries( int index, cloud.prefab.domain.Prefab.ConfigEvaluationSummary value) { if (summariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSummariesIsMutable(); summaries_.add(index, value); onChanged(); } else { summariesBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder addSummaries( cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder builderForValue) { if (summariesBuilder_ == null) { ensureSummariesIsMutable(); summaries_.add(builderForValue.build()); onChanged(); } else { summariesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder addSummaries( int index, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder builderForValue) { if (summariesBuilder_ == null) { ensureSummariesIsMutable(); summaries_.add(index, builderForValue.build()); onChanged(); } else { summariesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder addAllSummaries( java.lang.Iterable values) { if (summariesBuilder_ == null) { ensureSummariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, summaries_); onChanged(); } else { summariesBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder clearSummaries() { if (summariesBuilder_ == null) { summaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { summariesBuilder_.clear(); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public Builder removeSummaries(int index) { if (summariesBuilder_ == null) { ensureSummariesIsMutable(); summaries_.remove(index); onChanged(); } else { summariesBuilder_.remove(index); } return this; } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder getSummariesBuilder( int index) { return getSummariesFieldBuilder().getBuilder(index); } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder getSummariesOrBuilder( int index) { if (summariesBuilder_ == null) { return summaries_.get(index); } else { return summariesBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public java.util.List getSummariesOrBuilderList() { if (summariesBuilder_ != null) { return summariesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(summaries_); } } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder addSummariesBuilder() { return getSummariesFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.ConfigEvaluationSummary.getDefaultInstance()); } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder addSummariesBuilder( int index) { return getSummariesFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.getDefaultInstance()); } /** * repeated .prefab.ConfigEvaluationSummary summaries = 3; */ public java.util.List getSummariesBuilderList() { return getSummariesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationSummary, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder> getSummariesFieldBuilder() { if (summariesBuilder_ == null) { summariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationSummary, cloud.prefab.domain.Prefab.ConfigEvaluationSummary.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationSummaryOrBuilder>( summaries_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); summaries_ = null; } return summariesBuilder_; } @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.ConfigEvaluationSummaries) } // @@protoc_insertion_point(class_scope:prefab.ConfigEvaluationSummaries) private static final cloud.prefab.domain.Prefab.ConfigEvaluationSummaries DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ConfigEvaluationSummaries(); } public static cloud.prefab.domain.Prefab.ConfigEvaluationSummaries getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigEvaluationSummaries parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoggersTelemetryEventOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.LoggersTelemetryEvent) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.Logger loggers = 1; */ java.util.List getLoggersList(); /** * repeated .prefab.Logger loggers = 1; */ cloud.prefab.domain.Prefab.Logger getLoggers(int index); /** * repeated .prefab.Logger loggers = 1; */ int getLoggersCount(); /** * repeated .prefab.Logger loggers = 1; */ java.util.List getLoggersOrBuilderList(); /** * repeated .prefab.Logger loggers = 1; */ cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder( int index); /** * int64 start_at = 2; * @return The startAt. */ long getStartAt(); /** * int64 end_at = 3; * @return The endAt. */ long getEndAt(); } /** * Protobuf type {@code prefab.LoggersTelemetryEvent} */ public static final class LoggersTelemetryEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.LoggersTelemetryEvent) LoggersTelemetryEventOrBuilder { private static final long serialVersionUID = 0L; // Use LoggersTelemetryEvent.newBuilder() to construct. private LoggersTelemetryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoggersTelemetryEvent() { loggers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoggersTelemetryEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggersTelemetryEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggersTelemetryEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LoggersTelemetryEvent.class, cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder.class); } public static final int LOGGERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List loggers_; /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public java.util.List getLoggersList() { return loggers_; } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public java.util.List getLoggersOrBuilderList() { return loggers_; } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public int getLoggersCount() { return loggers_.size(); } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.Logger getLoggers(int index) { return loggers_.get(index); } /** * repeated .prefab.Logger loggers = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder( int index) { return loggers_.get(index); } public static final int START_AT_FIELD_NUMBER = 2; private long startAt_ = 0L; /** * int64 start_at = 2; * @return The startAt. */ @java.lang.Override public long getStartAt() { return startAt_; } public static final int END_AT_FIELD_NUMBER = 3; private long endAt_ = 0L; /** * int64 end_at = 3; * @return The endAt. */ @java.lang.Override public long getEndAt() { return endAt_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < loggers_.size(); i++) { output.writeMessage(1, loggers_.get(i)); } if (startAt_ != 0L) { output.writeInt64(2, startAt_); } if (endAt_ != 0L) { output.writeInt64(3, endAt_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < loggers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, loggers_.get(i)); } if (startAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, startAt_); } if (endAt_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, endAt_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.LoggersTelemetryEvent)) { return super.equals(obj); } cloud.prefab.domain.Prefab.LoggersTelemetryEvent other = (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) obj; if (!getLoggersList() .equals(other.getLoggersList())) return false; if (getStartAt() != other.getStartAt()) return false; if (getEndAt() != other.getEndAt()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getLoggersCount() > 0) { hash = (37 * hash) + LOGGERS_FIELD_NUMBER; hash = (53 * hash) + getLoggersList().hashCode(); } hash = (37 * hash) + START_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartAt()); hash = (37 * hash) + END_AT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndAt()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent 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.LoggersTelemetryEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent 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.LoggersTelemetryEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent 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.LoggersTelemetryEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent 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.LoggersTelemetryEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent 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.LoggersTelemetryEvent 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.LoggersTelemetryEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.LoggersTelemetryEvent) cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggersTelemetryEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggersTelemetryEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.LoggersTelemetryEvent.class, cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder.class); } // Construct using cloud.prefab.domain.Prefab.LoggersTelemetryEvent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (loggersBuilder_ == null) { loggers_ = java.util.Collections.emptyList(); } else { loggers_ = null; loggersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); startAt_ = 0L; endAt_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_LoggersTelemetryEvent_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEvent getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEvent build() { cloud.prefab.domain.Prefab.LoggersTelemetryEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEvent buildPartial() { cloud.prefab.domain.Prefab.LoggersTelemetryEvent result = new cloud.prefab.domain.Prefab.LoggersTelemetryEvent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.LoggersTelemetryEvent result) { if (loggersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { loggers_ = java.util.Collections.unmodifiableList(loggers_); bitField0_ = (bitField0_ & ~0x00000001); } result.loggers_ = loggers_; } else { result.loggers_ = loggersBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.LoggersTelemetryEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.startAt_ = startAt_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.endAt_ = endAt_; } } @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.LoggersTelemetryEvent) { return mergeFrom((cloud.prefab.domain.Prefab.LoggersTelemetryEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.LoggersTelemetryEvent other) { if (other == cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance()) return this; if (loggersBuilder_ == null) { if (!other.loggers_.isEmpty()) { if (loggers_.isEmpty()) { loggers_ = other.loggers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLoggersIsMutable(); loggers_.addAll(other.loggers_); } onChanged(); } } else { if (!other.loggers_.isEmpty()) { if (loggersBuilder_.isEmpty()) { loggersBuilder_.dispose(); loggersBuilder_ = null; loggers_ = other.loggers_; bitField0_ = (bitField0_ & ~0x00000001); loggersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoggersFieldBuilder() : null; } else { loggersBuilder_.addAllMessages(other.loggers_); } } } if (other.getStartAt() != 0L) { setStartAt(other.getStartAt()); } if (other.getEndAt() != 0L) { setEndAt(other.getEndAt()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.Logger m = input.readMessage( cloud.prefab.domain.Prefab.Logger.parser(), extensionRegistry); if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.add(m); } else { loggersBuilder_.addMessage(m); } break; } // case 10 case 16: { startAt_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { endAt_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List loggers_ = java.util.Collections.emptyList(); private void ensureLoggersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { loggers_ = new java.util.ArrayList(loggers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder> loggersBuilder_; /** * repeated .prefab.Logger loggers = 1; */ public java.util.List getLoggersList() { if (loggersBuilder_ == null) { return java.util.Collections.unmodifiableList(loggers_); } else { return loggersBuilder_.getMessageList(); } } /** * repeated .prefab.Logger loggers = 1; */ public int getLoggersCount() { if (loggersBuilder_ == null) { return loggers_.size(); } else { return loggersBuilder_.getCount(); } } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger getLoggers(int index) { if (loggersBuilder_ == null) { return loggers_.get(index); } else { return loggersBuilder_.getMessage(index); } } /** * repeated .prefab.Logger loggers = 1; */ public Builder setLoggers( int index, cloud.prefab.domain.Prefab.Logger value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoggersIsMutable(); loggers_.set(index, value); onChanged(); } else { loggersBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder setLoggers( int index, cloud.prefab.domain.Prefab.Logger.Builder builderForValue) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.set(index, builderForValue.build()); onChanged(); } else { loggersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers(cloud.prefab.domain.Prefab.Logger value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoggersIsMutable(); loggers_.add(value); onChanged(); } else { loggersBuilder_.addMessage(value); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers( int index, cloud.prefab.domain.Prefab.Logger value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoggersIsMutable(); loggers_.add(index, value); onChanged(); } else { loggersBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers( cloud.prefab.domain.Prefab.Logger.Builder builderForValue) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.add(builderForValue.build()); onChanged(); } else { loggersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addLoggers( int index, cloud.prefab.domain.Prefab.Logger.Builder builderForValue) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.add(index, builderForValue.build()); onChanged(); } else { loggersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder addAllLoggers( java.lang.Iterable values) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, loggers_); onChanged(); } else { loggersBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder clearLoggers() { if (loggersBuilder_ == null) { loggers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { loggersBuilder_.clear(); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public Builder removeLoggers(int index) { if (loggersBuilder_ == null) { ensureLoggersIsMutable(); loggers_.remove(index); onChanged(); } else { loggersBuilder_.remove(index); } return this; } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger.Builder getLoggersBuilder( int index) { return getLoggersFieldBuilder().getBuilder(index); } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.LoggerOrBuilder getLoggersOrBuilder( int index) { if (loggersBuilder_ == null) { return loggers_.get(index); } else { return loggersBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.Logger loggers = 1; */ public java.util.List getLoggersOrBuilderList() { if (loggersBuilder_ != null) { return loggersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(loggers_); } } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger.Builder addLoggersBuilder() { return getLoggersFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.Logger.getDefaultInstance()); } /** * repeated .prefab.Logger loggers = 1; */ public cloud.prefab.domain.Prefab.Logger.Builder addLoggersBuilder( int index) { return getLoggersFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.Logger.getDefaultInstance()); } /** * repeated .prefab.Logger loggers = 1; */ public java.util.List getLoggersBuilderList() { return getLoggersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder> getLoggersFieldBuilder() { if (loggersBuilder_ == null) { loggersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.Logger, cloud.prefab.domain.Prefab.Logger.Builder, cloud.prefab.domain.Prefab.LoggerOrBuilder>( loggers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); loggers_ = null; } return loggersBuilder_; } private long startAt_ ; /** * int64 start_at = 2; * @return The startAt. */ @java.lang.Override public long getStartAt() { return startAt_; } /** * int64 start_at = 2; * @param value The startAt to set. * @return This builder for chaining. */ public Builder setStartAt(long value) { startAt_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 start_at = 2; * @return This builder for chaining. */ public Builder clearStartAt() { bitField0_ = (bitField0_ & ~0x00000002); startAt_ = 0L; onChanged(); return this; } private long endAt_ ; /** * int64 end_at = 3; * @return The endAt. */ @java.lang.Override public long getEndAt() { return endAt_; } /** * int64 end_at = 3; * @param value The endAt to set. * @return This builder for chaining. */ public Builder setEndAt(long value) { endAt_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 end_at = 3; * @return This builder for chaining. */ public Builder clearEndAt() { bitField0_ = (bitField0_ & ~0x00000004); endAt_ = 0L; onChanged(); return this; } @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.LoggersTelemetryEvent) } // @@protoc_insertion_point(class_scope:prefab.LoggersTelemetryEvent) private static final cloud.prefab.domain.Prefab.LoggersTelemetryEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.LoggersTelemetryEvent(); } public static cloud.prefab.domain.Prefab.LoggersTelemetryEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoggersTelemetryEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TelemetryEventOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.TelemetryEvent) com.google.protobuf.MessageOrBuilder { /** * .prefab.ConfigEvaluationSummaries summaries = 2; * @return Whether the summaries field is set. */ boolean hasSummaries(); /** * .prefab.ConfigEvaluationSummaries summaries = 2; * @return The summaries. */ cloud.prefab.domain.Prefab.ConfigEvaluationSummaries getSummaries(); /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder getSummariesOrBuilder(); /** * .prefab.ExampleContexts example_contexts = 3; * @return Whether the exampleContexts field is set. */ boolean hasExampleContexts(); /** * .prefab.ExampleContexts example_contexts = 3; * @return The exampleContexts. */ cloud.prefab.domain.Prefab.ExampleContexts getExampleContexts(); /** * .prefab.ExampleContexts example_contexts = 3; */ cloud.prefab.domain.Prefab.ExampleContextsOrBuilder getExampleContextsOrBuilder(); /** * .prefab.ClientStats client_stats = 4; * @return Whether the clientStats field is set. */ boolean hasClientStats(); /** * .prefab.ClientStats client_stats = 4; * @return The clientStats. */ cloud.prefab.domain.Prefab.ClientStats getClientStats(); /** * .prefab.ClientStats client_stats = 4; */ cloud.prefab.domain.Prefab.ClientStatsOrBuilder getClientStatsOrBuilder(); /** * .prefab.LoggersTelemetryEvent loggers = 5; * @return Whether the loggers field is set. */ boolean hasLoggers(); /** * .prefab.LoggersTelemetryEvent loggers = 5; * @return The loggers. */ cloud.prefab.domain.Prefab.LoggersTelemetryEvent getLoggers(); /** * .prefab.LoggersTelemetryEvent loggers = 5; */ cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder getLoggersOrBuilder(); /** * .prefab.ContextShapes context_shapes = 6; * @return Whether the contextShapes field is set. */ boolean hasContextShapes(); /** * .prefab.ContextShapes context_shapes = 6; * @return The contextShapes. */ cloud.prefab.domain.Prefab.ContextShapes getContextShapes(); /** * .prefab.ContextShapes context_shapes = 6; */ cloud.prefab.domain.Prefab.ContextShapesOrBuilder getContextShapesOrBuilder(); cloud.prefab.domain.Prefab.TelemetryEvent.PayloadCase getPayloadCase(); } /** * Protobuf type {@code prefab.TelemetryEvent} */ public static final class TelemetryEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.TelemetryEvent) TelemetryEventOrBuilder { private static final long serialVersionUID = 0L; // Use TelemetryEvent.newBuilder() to construct. private TelemetryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TelemetryEvent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TelemetryEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.TelemetryEvent.class, cloud.prefab.domain.Prefab.TelemetryEvent.Builder.class); } private int payloadCase_ = 0; @SuppressWarnings("serial") private java.lang.Object payload_; public enum PayloadCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SUMMARIES(2), EXAMPLE_CONTEXTS(3), CLIENT_STATS(4), LOGGERS(5), CONTEXT_SHAPES(6), PAYLOAD_NOT_SET(0); private final int value; private PayloadCase(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 PayloadCase valueOf(int value) { return forNumber(value); } public static PayloadCase forNumber(int value) { switch (value) { case 2: return SUMMARIES; case 3: return EXAMPLE_CONTEXTS; case 4: return CLIENT_STATS; case 5: return LOGGERS; case 6: return CONTEXT_SHAPES; case 0: return PAYLOAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public static final int SUMMARIES_FIELD_NUMBER = 2; /** * .prefab.ConfigEvaluationSummaries summaries = 2; * @return Whether the summaries field is set. */ @java.lang.Override public boolean hasSummaries() { return payloadCase_ == 2; } /** * .prefab.ConfigEvaluationSummaries summaries = 2; * @return The summaries. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries getSummaries() { if (payloadCase_ == 2) { return (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_; } return cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder getSummariesOrBuilder() { if (payloadCase_ == 2) { return (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_; } return cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } public static final int EXAMPLE_CONTEXTS_FIELD_NUMBER = 3; /** * .prefab.ExampleContexts example_contexts = 3; * @return Whether the exampleContexts field is set. */ @java.lang.Override public boolean hasExampleContexts() { return payloadCase_ == 3; } /** * .prefab.ExampleContexts example_contexts = 3; * @return The exampleContexts. */ @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContexts getExampleContexts() { if (payloadCase_ == 3) { return (cloud.prefab.domain.Prefab.ExampleContexts) payload_; } return cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } /** * .prefab.ExampleContexts example_contexts = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContextsOrBuilder getExampleContextsOrBuilder() { if (payloadCase_ == 3) { return (cloud.prefab.domain.Prefab.ExampleContexts) payload_; } return cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } public static final int CLIENT_STATS_FIELD_NUMBER = 4; /** * .prefab.ClientStats client_stats = 4; * @return Whether the clientStats field is set. */ @java.lang.Override public boolean hasClientStats() { return payloadCase_ == 4; } /** * .prefab.ClientStats client_stats = 4; * @return The clientStats. */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientStats getClientStats() { if (payloadCase_ == 4) { return (cloud.prefab.domain.Prefab.ClientStats) payload_; } return cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } /** * .prefab.ClientStats client_stats = 4; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientStatsOrBuilder getClientStatsOrBuilder() { if (payloadCase_ == 4) { return (cloud.prefab.domain.Prefab.ClientStats) payload_; } return cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } public static final int LOGGERS_FIELD_NUMBER = 5; /** * .prefab.LoggersTelemetryEvent loggers = 5; * @return Whether the loggers field is set. */ @java.lang.Override public boolean hasLoggers() { return payloadCase_ == 5; } /** * .prefab.LoggersTelemetryEvent loggers = 5; * @return The loggers. */ @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEvent getLoggers() { if (payloadCase_ == 5) { return (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_; } return cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder getLoggersOrBuilder() { if (payloadCase_ == 5) { return (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_; } return cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } public static final int CONTEXT_SHAPES_FIELD_NUMBER = 6; /** * .prefab.ContextShapes context_shapes = 6; * @return Whether the contextShapes field is set. */ @java.lang.Override public boolean hasContextShapes() { return payloadCase_ == 6; } /** * .prefab.ContextShapes context_shapes = 6; * @return The contextShapes. */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapes getContextShapes() { if (payloadCase_ == 6) { return (cloud.prefab.domain.Prefab.ContextShapes) payload_; } return cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance(); } /** * .prefab.ContextShapes context_shapes = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapesOrBuilder getContextShapesOrBuilder() { if (payloadCase_ == 6) { return (cloud.prefab.domain.Prefab.ContextShapes) payload_; } return cloud.prefab.domain.Prefab.ContextShapes.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 (payloadCase_ == 2) { output.writeMessage(2, (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_); } if (payloadCase_ == 3) { output.writeMessage(3, (cloud.prefab.domain.Prefab.ExampleContexts) payload_); } if (payloadCase_ == 4) { output.writeMessage(4, (cloud.prefab.domain.Prefab.ClientStats) payload_); } if (payloadCase_ == 5) { output.writeMessage(5, (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_); } if (payloadCase_ == 6) { output.writeMessage(6, (cloud.prefab.domain.Prefab.ContextShapes) payload_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payloadCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_); } if (payloadCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (cloud.prefab.domain.Prefab.ExampleContexts) payload_); } if (payloadCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (cloud.prefab.domain.Prefab.ClientStats) payload_); } if (payloadCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_); } if (payloadCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (cloud.prefab.domain.Prefab.ContextShapes) payload_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.TelemetryEvent)) { return super.equals(obj); } cloud.prefab.domain.Prefab.TelemetryEvent other = (cloud.prefab.domain.Prefab.TelemetryEvent) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 2: if (!getSummaries() .equals(other.getSummaries())) return false; break; case 3: if (!getExampleContexts() .equals(other.getExampleContexts())) return false; break; case 4: if (!getClientStats() .equals(other.getClientStats())) return false; break; case 5: if (!getLoggers() .equals(other.getLoggers())) return false; break; case 6: if (!getContextShapes() .equals(other.getContextShapes())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (payloadCase_) { case 2: hash = (37 * hash) + SUMMARIES_FIELD_NUMBER; hash = (53 * hash) + getSummaries().hashCode(); break; case 3: hash = (37 * hash) + EXAMPLE_CONTEXTS_FIELD_NUMBER; hash = (53 * hash) + getExampleContexts().hashCode(); break; case 4: hash = (37 * hash) + CLIENT_STATS_FIELD_NUMBER; hash = (53 * hash) + getClientStats().hashCode(); break; case 5: hash = (37 * hash) + LOGGERS_FIELD_NUMBER; hash = (53 * hash) + getLoggers().hashCode(); break; case 6: hash = (37 * hash) + CONTEXT_SHAPES_FIELD_NUMBER; hash = (53 * hash) + getContextShapes().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.TelemetryEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEvent 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.TelemetryEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEvent 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.TelemetryEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.TelemetryEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEvent 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.TelemetryEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEvent 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.TelemetryEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEvent 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.TelemetryEvent 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.TelemetryEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.TelemetryEvent) cloud.prefab.domain.Prefab.TelemetryEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.TelemetryEvent.class, cloud.prefab.domain.Prefab.TelemetryEvent.Builder.class); } // Construct using cloud.prefab.domain.Prefab.TelemetryEvent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (summariesBuilder_ != null) { summariesBuilder_.clear(); } if (exampleContextsBuilder_ != null) { exampleContextsBuilder_.clear(); } if (clientStatsBuilder_ != null) { clientStatsBuilder_.clear(); } if (loggersBuilder_ != null) { loggersBuilder_.clear(); } if (contextShapesBuilder_ != null) { contextShapesBuilder_.clear(); } payloadCase_ = 0; payload_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvent_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvent getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.TelemetryEvent.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvent build() { cloud.prefab.domain.Prefab.TelemetryEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvent buildPartial() { cloud.prefab.domain.Prefab.TelemetryEvent result = new cloud.prefab.domain.Prefab.TelemetryEvent(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.TelemetryEvent result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(cloud.prefab.domain.Prefab.TelemetryEvent result) { result.payloadCase_ = payloadCase_; result.payload_ = this.payload_; if (payloadCase_ == 2 && summariesBuilder_ != null) { result.payload_ = summariesBuilder_.build(); } if (payloadCase_ == 3 && exampleContextsBuilder_ != null) { result.payload_ = exampleContextsBuilder_.build(); } if (payloadCase_ == 4 && clientStatsBuilder_ != null) { result.payload_ = clientStatsBuilder_.build(); } if (payloadCase_ == 5 && loggersBuilder_ != null) { result.payload_ = loggersBuilder_.build(); } if (payloadCase_ == 6 && contextShapesBuilder_ != null) { result.payload_ = contextShapesBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.TelemetryEvent) { return mergeFrom((cloud.prefab.domain.Prefab.TelemetryEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.TelemetryEvent other) { if (other == cloud.prefab.domain.Prefab.TelemetryEvent.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case SUMMARIES: { mergeSummaries(other.getSummaries()); break; } case EXAMPLE_CONTEXTS: { mergeExampleContexts(other.getExampleContexts()); break; } case CLIENT_STATS: { mergeClientStats(other.getClientStats()); break; } case LOGGERS: { mergeLoggers(other.getLoggers()); break; } case CONTEXT_SHAPES: { mergeContextShapes(other.getContextShapes()); break; } case PAYLOAD_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { input.readMessage( getSummariesFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 2; break; } // case 18 case 26: { input.readMessage( getExampleContextsFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 3; break; } // case 26 case 34: { input.readMessage( getClientStatsFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 4; break; } // case 34 case 42: { input.readMessage( getLoggersFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 5; break; } // case 42 case 50: { input.readMessage( getContextShapesFieldBuilder().getBuilder(), extensionRegistry); payloadCase_ = 6; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int payloadCase_ = 0; private java.lang.Object payload_; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public Builder clearPayload() { payloadCase_ = 0; payload_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationSummaries, cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder> summariesBuilder_; /** * .prefab.ConfigEvaluationSummaries summaries = 2; * @return Whether the summaries field is set. */ @java.lang.Override public boolean hasSummaries() { return payloadCase_ == 2; } /** * .prefab.ConfigEvaluationSummaries summaries = 2; * @return The summaries. */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries getSummaries() { if (summariesBuilder_ == null) { if (payloadCase_ == 2) { return (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_; } return cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } else { if (payloadCase_ == 2) { return summariesBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ public Builder setSummaries(cloud.prefab.domain.Prefab.ConfigEvaluationSummaries value) { if (summariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { summariesBuilder_.setMessage(value); } payloadCase_ = 2; return this; } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ public Builder setSummaries( cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder builderForValue) { if (summariesBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { summariesBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 2; return this; } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ public Builder mergeSummaries(cloud.prefab.domain.Prefab.ConfigEvaluationSummaries value) { if (summariesBuilder_ == null) { if (payloadCase_ == 2 && payload_ != cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance()) { payload_ = cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.newBuilder((cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 2) { summariesBuilder_.mergeFrom(value); } else { summariesBuilder_.setMessage(value); } } payloadCase_ = 2; return this; } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ public Builder clearSummaries() { if (summariesBuilder_ == null) { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 2) { payloadCase_ = 0; payload_ = null; } summariesBuilder_.clear(); } return this; } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ public cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder getSummariesBuilder() { return getSummariesFieldBuilder().getBuilder(); } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder getSummariesOrBuilder() { if ((payloadCase_ == 2) && (summariesBuilder_ != null)) { return summariesBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 2) { return (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_; } return cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } } /** * .prefab.ConfigEvaluationSummaries summaries = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationSummaries, cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder> getSummariesFieldBuilder() { if (summariesBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.getDefaultInstance(); } summariesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ConfigEvaluationSummaries, cloud.prefab.domain.Prefab.ConfigEvaluationSummaries.Builder, cloud.prefab.domain.Prefab.ConfigEvaluationSummariesOrBuilder>( (cloud.prefab.domain.Prefab.ConfigEvaluationSummaries) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; onChanged(); return summariesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ExampleContexts, cloud.prefab.domain.Prefab.ExampleContexts.Builder, cloud.prefab.domain.Prefab.ExampleContextsOrBuilder> exampleContextsBuilder_; /** * .prefab.ExampleContexts example_contexts = 3; * @return Whether the exampleContexts field is set. */ @java.lang.Override public boolean hasExampleContexts() { return payloadCase_ == 3; } /** * .prefab.ExampleContexts example_contexts = 3; * @return The exampleContexts. */ @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContexts getExampleContexts() { if (exampleContextsBuilder_ == null) { if (payloadCase_ == 3) { return (cloud.prefab.domain.Prefab.ExampleContexts) payload_; } return cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } else { if (payloadCase_ == 3) { return exampleContextsBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } } /** * .prefab.ExampleContexts example_contexts = 3; */ public Builder setExampleContexts(cloud.prefab.domain.Prefab.ExampleContexts value) { if (exampleContextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { exampleContextsBuilder_.setMessage(value); } payloadCase_ = 3; return this; } /** * .prefab.ExampleContexts example_contexts = 3; */ public Builder setExampleContexts( cloud.prefab.domain.Prefab.ExampleContexts.Builder builderForValue) { if (exampleContextsBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { exampleContextsBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 3; return this; } /** * .prefab.ExampleContexts example_contexts = 3; */ public Builder mergeExampleContexts(cloud.prefab.domain.Prefab.ExampleContexts value) { if (exampleContextsBuilder_ == null) { if (payloadCase_ == 3 && payload_ != cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance()) { payload_ = cloud.prefab.domain.Prefab.ExampleContexts.newBuilder((cloud.prefab.domain.Prefab.ExampleContexts) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 3) { exampleContextsBuilder_.mergeFrom(value); } else { exampleContextsBuilder_.setMessage(value); } } payloadCase_ = 3; return this; } /** * .prefab.ExampleContexts example_contexts = 3; */ public Builder clearExampleContexts() { if (exampleContextsBuilder_ == null) { if (payloadCase_ == 3) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 3) { payloadCase_ = 0; payload_ = null; } exampleContextsBuilder_.clear(); } return this; } /** * .prefab.ExampleContexts example_contexts = 3; */ public cloud.prefab.domain.Prefab.ExampleContexts.Builder getExampleContextsBuilder() { return getExampleContextsFieldBuilder().getBuilder(); } /** * .prefab.ExampleContexts example_contexts = 3; */ @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContextsOrBuilder getExampleContextsOrBuilder() { if ((payloadCase_ == 3) && (exampleContextsBuilder_ != null)) { return exampleContextsBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 3) { return (cloud.prefab.domain.Prefab.ExampleContexts) payload_; } return cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } } /** * .prefab.ExampleContexts example_contexts = 3; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ExampleContexts, cloud.prefab.domain.Prefab.ExampleContexts.Builder, cloud.prefab.domain.Prefab.ExampleContextsOrBuilder> getExampleContextsFieldBuilder() { if (exampleContextsBuilder_ == null) { if (!(payloadCase_ == 3)) { payload_ = cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } exampleContextsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ExampleContexts, cloud.prefab.domain.Prefab.ExampleContexts.Builder, cloud.prefab.domain.Prefab.ExampleContextsOrBuilder>( (cloud.prefab.domain.Prefab.ExampleContexts) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 3; onChanged(); return exampleContextsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ClientStats, cloud.prefab.domain.Prefab.ClientStats.Builder, cloud.prefab.domain.Prefab.ClientStatsOrBuilder> clientStatsBuilder_; /** * .prefab.ClientStats client_stats = 4; * @return Whether the clientStats field is set. */ @java.lang.Override public boolean hasClientStats() { return payloadCase_ == 4; } /** * .prefab.ClientStats client_stats = 4; * @return The clientStats. */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientStats getClientStats() { if (clientStatsBuilder_ == null) { if (payloadCase_ == 4) { return (cloud.prefab.domain.Prefab.ClientStats) payload_; } return cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } else { if (payloadCase_ == 4) { return clientStatsBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } } /** * .prefab.ClientStats client_stats = 4; */ public Builder setClientStats(cloud.prefab.domain.Prefab.ClientStats value) { if (clientStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { clientStatsBuilder_.setMessage(value); } payloadCase_ = 4; return this; } /** * .prefab.ClientStats client_stats = 4; */ public Builder setClientStats( cloud.prefab.domain.Prefab.ClientStats.Builder builderForValue) { if (clientStatsBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { clientStatsBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 4; return this; } /** * .prefab.ClientStats client_stats = 4; */ public Builder mergeClientStats(cloud.prefab.domain.Prefab.ClientStats value) { if (clientStatsBuilder_ == null) { if (payloadCase_ == 4 && payload_ != cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance()) { payload_ = cloud.prefab.domain.Prefab.ClientStats.newBuilder((cloud.prefab.domain.Prefab.ClientStats) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 4) { clientStatsBuilder_.mergeFrom(value); } else { clientStatsBuilder_.setMessage(value); } } payloadCase_ = 4; return this; } /** * .prefab.ClientStats client_stats = 4; */ public Builder clearClientStats() { if (clientStatsBuilder_ == null) { if (payloadCase_ == 4) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 4) { payloadCase_ = 0; payload_ = null; } clientStatsBuilder_.clear(); } return this; } /** * .prefab.ClientStats client_stats = 4; */ public cloud.prefab.domain.Prefab.ClientStats.Builder getClientStatsBuilder() { return getClientStatsFieldBuilder().getBuilder(); } /** * .prefab.ClientStats client_stats = 4; */ @java.lang.Override public cloud.prefab.domain.Prefab.ClientStatsOrBuilder getClientStatsOrBuilder() { if ((payloadCase_ == 4) && (clientStatsBuilder_ != null)) { return clientStatsBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 4) { return (cloud.prefab.domain.Prefab.ClientStats) payload_; } return cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } } /** * .prefab.ClientStats client_stats = 4; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ClientStats, cloud.prefab.domain.Prefab.ClientStats.Builder, cloud.prefab.domain.Prefab.ClientStatsOrBuilder> getClientStatsFieldBuilder() { if (clientStatsBuilder_ == null) { if (!(payloadCase_ == 4)) { payload_ = cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } clientStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ClientStats, cloud.prefab.domain.Prefab.ClientStats.Builder, cloud.prefab.domain.Prefab.ClientStatsOrBuilder>( (cloud.prefab.domain.Prefab.ClientStats) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 4; onChanged(); return clientStatsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.LoggersTelemetryEvent, cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder, cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder> loggersBuilder_; /** * .prefab.LoggersTelemetryEvent loggers = 5; * @return Whether the loggers field is set. */ @java.lang.Override public boolean hasLoggers() { return payloadCase_ == 5; } /** * .prefab.LoggersTelemetryEvent loggers = 5; * @return The loggers. */ @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEvent getLoggers() { if (loggersBuilder_ == null) { if (payloadCase_ == 5) { return (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_; } return cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } else { if (payloadCase_ == 5) { return loggersBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ public Builder setLoggers(cloud.prefab.domain.Prefab.LoggersTelemetryEvent value) { if (loggersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { loggersBuilder_.setMessage(value); } payloadCase_ = 5; return this; } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ public Builder setLoggers( cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder builderForValue) { if (loggersBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { loggersBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 5; return this; } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ public Builder mergeLoggers(cloud.prefab.domain.Prefab.LoggersTelemetryEvent value) { if (loggersBuilder_ == null) { if (payloadCase_ == 5 && payload_ != cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance()) { payload_ = cloud.prefab.domain.Prefab.LoggersTelemetryEvent.newBuilder((cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 5) { loggersBuilder_.mergeFrom(value); } else { loggersBuilder_.setMessage(value); } } payloadCase_ = 5; return this; } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ public Builder clearLoggers() { if (loggersBuilder_ == null) { if (payloadCase_ == 5) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 5) { payloadCase_ = 0; payload_ = null; } loggersBuilder_.clear(); } return this; } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ public cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder getLoggersBuilder() { return getLoggersFieldBuilder().getBuilder(); } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ @java.lang.Override public cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder getLoggersOrBuilder() { if ((payloadCase_ == 5) && (loggersBuilder_ != null)) { return loggersBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 5) { return (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_; } return cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } } /** * .prefab.LoggersTelemetryEvent loggers = 5; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.LoggersTelemetryEvent, cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder, cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder> getLoggersFieldBuilder() { if (loggersBuilder_ == null) { if (!(payloadCase_ == 5)) { payload_ = cloud.prefab.domain.Prefab.LoggersTelemetryEvent.getDefaultInstance(); } loggersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.LoggersTelemetryEvent, cloud.prefab.domain.Prefab.LoggersTelemetryEvent.Builder, cloud.prefab.domain.Prefab.LoggersTelemetryEventOrBuilder>( (cloud.prefab.domain.Prefab.LoggersTelemetryEvent) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 5; onChanged(); return loggersBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextShapes, cloud.prefab.domain.Prefab.ContextShapes.Builder, cloud.prefab.domain.Prefab.ContextShapesOrBuilder> contextShapesBuilder_; /** * .prefab.ContextShapes context_shapes = 6; * @return Whether the contextShapes field is set. */ @java.lang.Override public boolean hasContextShapes() { return payloadCase_ == 6; } /** * .prefab.ContextShapes context_shapes = 6; * @return The contextShapes. */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapes getContextShapes() { if (contextShapesBuilder_ == null) { if (payloadCase_ == 6) { return (cloud.prefab.domain.Prefab.ContextShapes) payload_; } return cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance(); } else { if (payloadCase_ == 6) { return contextShapesBuilder_.getMessage(); } return cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance(); } } /** * .prefab.ContextShapes context_shapes = 6; */ public Builder setContextShapes(cloud.prefab.domain.Prefab.ContextShapes value) { if (contextShapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { contextShapesBuilder_.setMessage(value); } payloadCase_ = 6; return this; } /** * .prefab.ContextShapes context_shapes = 6; */ public Builder setContextShapes( cloud.prefab.domain.Prefab.ContextShapes.Builder builderForValue) { if (contextShapesBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { contextShapesBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 6; return this; } /** * .prefab.ContextShapes context_shapes = 6; */ public Builder mergeContextShapes(cloud.prefab.domain.Prefab.ContextShapes value) { if (contextShapesBuilder_ == null) { if (payloadCase_ == 6 && payload_ != cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance()) { payload_ = cloud.prefab.domain.Prefab.ContextShapes.newBuilder((cloud.prefab.domain.Prefab.ContextShapes) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 6) { contextShapesBuilder_.mergeFrom(value); } else { contextShapesBuilder_.setMessage(value); } } payloadCase_ = 6; return this; } /** * .prefab.ContextShapes context_shapes = 6; */ public Builder clearContextShapes() { if (contextShapesBuilder_ == null) { if (payloadCase_ == 6) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 6) { payloadCase_ = 0; payload_ = null; } contextShapesBuilder_.clear(); } return this; } /** * .prefab.ContextShapes context_shapes = 6; */ public cloud.prefab.domain.Prefab.ContextShapes.Builder getContextShapesBuilder() { return getContextShapesFieldBuilder().getBuilder(); } /** * .prefab.ContextShapes context_shapes = 6; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextShapesOrBuilder getContextShapesOrBuilder() { if ((payloadCase_ == 6) && (contextShapesBuilder_ != null)) { return contextShapesBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 6) { return (cloud.prefab.domain.Prefab.ContextShapes) payload_; } return cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance(); } } /** * .prefab.ContextShapes context_shapes = 6; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextShapes, cloud.prefab.domain.Prefab.ContextShapes.Builder, cloud.prefab.domain.Prefab.ContextShapesOrBuilder> getContextShapesFieldBuilder() { if (contextShapesBuilder_ == null) { if (!(payloadCase_ == 6)) { payload_ = cloud.prefab.domain.Prefab.ContextShapes.getDefaultInstance(); } contextShapesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextShapes, cloud.prefab.domain.Prefab.ContextShapes.Builder, cloud.prefab.domain.Prefab.ContextShapesOrBuilder>( (cloud.prefab.domain.Prefab.ContextShapes) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 6; onChanged(); return contextShapesBuilder_; } @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.TelemetryEvent) } // @@protoc_insertion_point(class_scope:prefab.TelemetryEvent) private static final cloud.prefab.domain.Prefab.TelemetryEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.TelemetryEvent(); } public static cloud.prefab.domain.Prefab.TelemetryEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TelemetryEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TelemetryEventsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.TelemetryEvents) com.google.protobuf.MessageOrBuilder { /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 1; * @return The instanceHash. */ java.lang.String getInstanceHash(); /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 1; * @return The bytes for instanceHash. */ com.google.protobuf.ByteString getInstanceHashBytes(); /** * repeated .prefab.TelemetryEvent events = 2; */ java.util.List getEventsList(); /** * repeated .prefab.TelemetryEvent events = 2; */ cloud.prefab.domain.Prefab.TelemetryEvent getEvents(int index); /** * repeated .prefab.TelemetryEvent events = 2; */ int getEventsCount(); /** * repeated .prefab.TelemetryEvent events = 2; */ java.util.List getEventsOrBuilderList(); /** * repeated .prefab.TelemetryEvent events = 2; */ cloud.prefab.domain.Prefab.TelemetryEventOrBuilder getEventsOrBuilder( int index); } /** * Protobuf type {@code prefab.TelemetryEvents} */ public static final class TelemetryEvents extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.TelemetryEvents) TelemetryEventsOrBuilder { private static final long serialVersionUID = 0L; // Use TelemetryEvents.newBuilder() to construct. private TelemetryEvents(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TelemetryEvents() { instanceHash_ = ""; events_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TelemetryEvents(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvents_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.TelemetryEvents.class, cloud.prefab.domain.Prefab.TelemetryEvents.Builder.class); } public static final int INSTANCE_HASH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object instanceHash_ = ""; /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 1; * @return The instanceHash. */ @java.lang.Override public java.lang.String getInstanceHash() { java.lang.Object ref = instanceHash_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceHash_ = s; return s; } } /** *
     * random UUID generated on startup - represents the server so we can aggregate
     * 
* * string instance_hash = 1; * @return The bytes for instanceHash. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceHashBytes() { java.lang.Object ref = instanceHash_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List events_; /** * repeated .prefab.TelemetryEvent events = 2; */ @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .prefab.TelemetryEvent events = 2; */ @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .prefab.TelemetryEvent events = 2; */ @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .prefab.TelemetryEvent events = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvent getEvents(int index) { return events_.get(index); } /** * repeated .prefab.TelemetryEvent events = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHash_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceHash_); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(2, events_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceHash_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceHash_); } for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, events_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.TelemetryEvents)) { return super.equals(obj); } cloud.prefab.domain.Prefab.TelemetryEvents other = (cloud.prefab.domain.Prefab.TelemetryEvents) obj; if (!getInstanceHash() .equals(other.getInstanceHash())) return false; if (!getEventsList() .equals(other.getEventsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INSTANCE_HASH_FIELD_NUMBER; hash = (53 * hash) + getInstanceHash().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.TelemetryEvents parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEvents 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.TelemetryEvents parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEvents 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.TelemetryEvents parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEvents parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.TelemetryEvents parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEvents 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.TelemetryEvents parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEvents 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.TelemetryEvents parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEvents 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.TelemetryEvents 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.TelemetryEvents} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.TelemetryEvents) cloud.prefab.domain.Prefab.TelemetryEventsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvents_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvents_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.TelemetryEvents.class, cloud.prefab.domain.Prefab.TelemetryEvents.Builder.class); } // Construct using cloud.prefab.domain.Prefab.TelemetryEvents.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; instanceHash_ = ""; if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); } else { events_ = null; eventsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEvents_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvents getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.TelemetryEvents.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvents build() { cloud.prefab.domain.Prefab.TelemetryEvents result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvents buildPartial() { cloud.prefab.domain.Prefab.TelemetryEvents result = new cloud.prefab.domain.Prefab.TelemetryEvents(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.TelemetryEvents result) { if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000002); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.TelemetryEvents result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceHash_ = instanceHash_; } } @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.TelemetryEvents) { return mergeFrom((cloud.prefab.domain.Prefab.TelemetryEvents)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.TelemetryEvents other) { if (other == cloud.prefab.domain.Prefab.TelemetryEvents.getDefaultInstance()) return this; if (!other.getInstanceHash().isEmpty()) { instanceHash_ = other.instanceHash_; bitField0_ |= 0x00000001; onChanged(); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000002); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { instanceHash_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { cloud.prefab.domain.Prefab.TelemetryEvent m = input.readMessage( cloud.prefab.domain.Prefab.TelemetryEvent.parser(), extensionRegistry); if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(m); } else { eventsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object instanceHash_ = ""; /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 1; * @return The instanceHash. */ public java.lang.String getInstanceHash() { java.lang.Object ref = instanceHash_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceHash_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 1; * @return The bytes for instanceHash. */ public com.google.protobuf.ByteString getInstanceHashBytes() { java.lang.Object ref = instanceHash_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceHash_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 1; * @param value The instanceHash to set. * @return This builder for chaining. */ public Builder setInstanceHash( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceHash_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 1; * @return This builder for chaining. */ public Builder clearInstanceHash() { instanceHash_ = getDefaultInstance().getInstanceHash(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * random UUID generated on startup - represents the server so we can aggregate
       * 
* * string instance_hash = 1; * @param value The bytes for instanceHash to set. * @return This builder for chaining. */ public Builder setInstanceHashBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceHash_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.TelemetryEvent, cloud.prefab.domain.Prefab.TelemetryEvent.Builder, cloud.prefab.domain.Prefab.TelemetryEventOrBuilder> eventsBuilder_; /** * repeated .prefab.TelemetryEvent events = 2; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .prefab.TelemetryEvent events = 2; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .prefab.TelemetryEvent events = 2; */ public cloud.prefab.domain.Prefab.TelemetryEvent getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder setEvents( int index, cloud.prefab.domain.Prefab.TelemetryEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder setEvents( int index, cloud.prefab.domain.Prefab.TelemetryEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder addEvents(cloud.prefab.domain.Prefab.TelemetryEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder addEvents( int index, cloud.prefab.domain.Prefab.TelemetryEvent value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder addEvents( cloud.prefab.domain.Prefab.TelemetryEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder addEvents( int index, cloud.prefab.domain.Prefab.TelemetryEvent.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .prefab.TelemetryEvent events = 2; */ public cloud.prefab.domain.Prefab.TelemetryEvent.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .prefab.TelemetryEvent events = 2; */ public cloud.prefab.domain.Prefab.TelemetryEventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.TelemetryEvent events = 2; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .prefab.TelemetryEvent events = 2; */ public cloud.prefab.domain.Prefab.TelemetryEvent.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.TelemetryEvent.getDefaultInstance()); } /** * repeated .prefab.TelemetryEvent events = 2; */ public cloud.prefab.domain.Prefab.TelemetryEvent.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.TelemetryEvent.getDefaultInstance()); } /** * repeated .prefab.TelemetryEvent events = 2; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.TelemetryEvent, cloud.prefab.domain.Prefab.TelemetryEvent.Builder, cloud.prefab.domain.Prefab.TelemetryEventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.TelemetryEvent, cloud.prefab.domain.Prefab.TelemetryEvent.Builder, cloud.prefab.domain.Prefab.TelemetryEventOrBuilder>( events_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } @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.TelemetryEvents) } // @@protoc_insertion_point(class_scope:prefab.TelemetryEvents) private static final cloud.prefab.domain.Prefab.TelemetryEvents DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.TelemetryEvents(); } public static cloud.prefab.domain.Prefab.TelemetryEvents getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TelemetryEvents parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEvents getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TelemetryEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.TelemetryEventsResponse) com.google.protobuf.MessageOrBuilder { /** * bool success = 1; * @return The success. */ boolean getSuccess(); } /** * Protobuf type {@code prefab.TelemetryEventsResponse} */ public static final class TelemetryEventsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.TelemetryEventsResponse) TelemetryEventsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TelemetryEventsResponse.newBuilder() to construct. private TelemetryEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TelemetryEventsResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TelemetryEventsResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.TelemetryEventsResponse.class, cloud.prefab.domain.Prefab.TelemetryEventsResponse.Builder.class); } public static final int SUCCESS_FIELD_NUMBER = 1; private boolean success_ = false; /** * bool success = 1; * @return The success. */ @java.lang.Override public boolean getSuccess() { return success_; } 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 (success_ != false) { output.writeBool(1, success_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (success_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, success_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.TelemetryEventsResponse)) { return super.equals(obj); } cloud.prefab.domain.Prefab.TelemetryEventsResponse other = (cloud.prefab.domain.Prefab.TelemetryEventsResponse) obj; if (getSuccess() != other.getSuccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SUCCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSuccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse 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.TelemetryEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse 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.TelemetryEventsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse 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.TelemetryEventsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse 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.TelemetryEventsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse 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.TelemetryEventsResponse 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.TelemetryEventsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.TelemetryEventsResponse) cloud.prefab.domain.Prefab.TelemetryEventsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.TelemetryEventsResponse.class, cloud.prefab.domain.Prefab.TelemetryEventsResponse.Builder.class); } // Construct using cloud.prefab.domain.Prefab.TelemetryEventsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; success_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_TelemetryEventsResponse_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEventsResponse getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.TelemetryEventsResponse.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEventsResponse build() { cloud.prefab.domain.Prefab.TelemetryEventsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEventsResponse buildPartial() { cloud.prefab.domain.Prefab.TelemetryEventsResponse result = new cloud.prefab.domain.Prefab.TelemetryEventsResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.TelemetryEventsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.success_ = success_; } } @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.TelemetryEventsResponse) { return mergeFrom((cloud.prefab.domain.Prefab.TelemetryEventsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.TelemetryEventsResponse other) { if (other == cloud.prefab.domain.Prefab.TelemetryEventsResponse.getDefaultInstance()) return this; if (other.getSuccess() != false) { setSuccess(other.getSuccess()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { success_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean success_ ; /** * bool success = 1; * @return The success. */ @java.lang.Override public boolean getSuccess() { return success_; } /** * bool success = 1; * @param value The success to set. * @return This builder for chaining. */ public Builder setSuccess(boolean value) { success_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * bool success = 1; * @return This builder for chaining. */ public Builder clearSuccess() { bitField0_ = (bitField0_ & ~0x00000001); success_ = 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.TelemetryEventsResponse) } // @@protoc_insertion_point(class_scope:prefab.TelemetryEventsResponse) private static final cloud.prefab.domain.Prefab.TelemetryEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.TelemetryEventsResponse(); } public static cloud.prefab.domain.Prefab.TelemetryEventsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TelemetryEventsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.TelemetryEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExampleContextsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ExampleContexts) com.google.protobuf.MessageOrBuilder { /** * repeated .prefab.ExampleContext examples = 1; */ java.util.List getExamplesList(); /** * repeated .prefab.ExampleContext examples = 1; */ cloud.prefab.domain.Prefab.ExampleContext getExamples(int index); /** * repeated .prefab.ExampleContext examples = 1; */ int getExamplesCount(); /** * repeated .prefab.ExampleContext examples = 1; */ java.util.List getExamplesOrBuilderList(); /** * repeated .prefab.ExampleContext examples = 1; */ cloud.prefab.domain.Prefab.ExampleContextOrBuilder getExamplesOrBuilder( int index); } /** * Protobuf type {@code prefab.ExampleContexts} */ public static final class ExampleContexts extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ExampleContexts) ExampleContextsOrBuilder { private static final long serialVersionUID = 0L; // Use ExampleContexts.newBuilder() to construct. private ExampleContexts(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExampleContexts() { examples_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExampleContexts(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContexts_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContexts_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ExampleContexts.class, cloud.prefab.domain.Prefab.ExampleContexts.Builder.class); } public static final int EXAMPLES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List examples_; /** * repeated .prefab.ExampleContext examples = 1; */ @java.lang.Override public java.util.List getExamplesList() { return examples_; } /** * repeated .prefab.ExampleContext examples = 1; */ @java.lang.Override public java.util.List getExamplesOrBuilderList() { return examples_; } /** * repeated .prefab.ExampleContext examples = 1; */ @java.lang.Override public int getExamplesCount() { return examples_.size(); } /** * repeated .prefab.ExampleContext examples = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContext getExamples(int index) { return examples_.get(index); } /** * repeated .prefab.ExampleContext examples = 1; */ @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContextOrBuilder getExamplesOrBuilder( int index) { return examples_.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 < examples_.size(); i++) { output.writeMessage(1, examples_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < examples_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, examples_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ExampleContexts)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ExampleContexts other = (cloud.prefab.domain.Prefab.ExampleContexts) obj; if (!getExamplesList() .equals(other.getExamplesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getExamplesCount() > 0) { hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; hash = (53 * hash) + getExamplesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ExampleContexts parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ExampleContexts 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.ExampleContexts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ExampleContexts 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.ExampleContexts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ExampleContexts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ExampleContexts parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ExampleContexts 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.ExampleContexts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ExampleContexts 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.ExampleContexts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ExampleContexts 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.ExampleContexts 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.ExampleContexts} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ExampleContexts) cloud.prefab.domain.Prefab.ExampleContextsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContexts_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContexts_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ExampleContexts.class, cloud.prefab.domain.Prefab.ExampleContexts.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ExampleContexts.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (examplesBuilder_ == null) { examples_ = java.util.Collections.emptyList(); } else { examples_ = null; examplesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContexts_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContexts getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContexts build() { cloud.prefab.domain.Prefab.ExampleContexts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContexts buildPartial() { cloud.prefab.domain.Prefab.ExampleContexts result = new cloud.prefab.domain.Prefab.ExampleContexts(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(cloud.prefab.domain.Prefab.ExampleContexts result) { if (examplesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { examples_ = java.util.Collections.unmodifiableList(examples_); bitField0_ = (bitField0_ & ~0x00000001); } result.examples_ = examples_; } else { result.examples_ = examplesBuilder_.build(); } } private void buildPartial0(cloud.prefab.domain.Prefab.ExampleContexts result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ExampleContexts) { return mergeFrom((cloud.prefab.domain.Prefab.ExampleContexts)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ExampleContexts other) { if (other == cloud.prefab.domain.Prefab.ExampleContexts.getDefaultInstance()) return this; if (examplesBuilder_ == null) { if (!other.examples_.isEmpty()) { if (examples_.isEmpty()) { examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExamplesIsMutable(); examples_.addAll(other.examples_); } onChanged(); } } else { if (!other.examples_.isEmpty()) { if (examplesBuilder_.isEmpty()) { examplesBuilder_.dispose(); examplesBuilder_ = null; examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000001); examplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExamplesFieldBuilder() : null; } else { examplesBuilder_.addAllMessages(other.examples_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { cloud.prefab.domain.Prefab.ExampleContext m = input.readMessage( cloud.prefab.domain.Prefab.ExampleContext.parser(), extensionRegistry); if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.add(m); } else { examplesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List examples_ = java.util.Collections.emptyList(); private void ensureExamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { examples_ = new java.util.ArrayList(examples_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ExampleContext, cloud.prefab.domain.Prefab.ExampleContext.Builder, cloud.prefab.domain.Prefab.ExampleContextOrBuilder> examplesBuilder_; /** * repeated .prefab.ExampleContext examples = 1; */ public java.util.List getExamplesList() { if (examplesBuilder_ == null) { return java.util.Collections.unmodifiableList(examples_); } else { return examplesBuilder_.getMessageList(); } } /** * repeated .prefab.ExampleContext examples = 1; */ public int getExamplesCount() { if (examplesBuilder_ == null) { return examples_.size(); } else { return examplesBuilder_.getCount(); } } /** * repeated .prefab.ExampleContext examples = 1; */ public cloud.prefab.domain.Prefab.ExampleContext getExamples(int index) { if (examplesBuilder_ == null) { return examples_.get(index); } else { return examplesBuilder_.getMessage(index); } } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder setExamples( int index, cloud.prefab.domain.Prefab.ExampleContext value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.set(index, value); onChanged(); } else { examplesBuilder_.setMessage(index, value); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder setExamples( int index, cloud.prefab.domain.Prefab.ExampleContext.Builder builderForValue) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.set(index, builderForValue.build()); onChanged(); } else { examplesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder addExamples(cloud.prefab.domain.Prefab.ExampleContext value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.add(value); onChanged(); } else { examplesBuilder_.addMessage(value); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder addExamples( int index, cloud.prefab.domain.Prefab.ExampleContext value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExamplesIsMutable(); examples_.add(index, value); onChanged(); } else { examplesBuilder_.addMessage(index, value); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder addExamples( cloud.prefab.domain.Prefab.ExampleContext.Builder builderForValue) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.add(builderForValue.build()); onChanged(); } else { examplesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder addExamples( int index, cloud.prefab.domain.Prefab.ExampleContext.Builder builderForValue) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.add(index, builderForValue.build()); onChanged(); } else { examplesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder addAllExamples( java.lang.Iterable values) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, examples_); onChanged(); } else { examplesBuilder_.addAllMessages(values); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder clearExamples() { if (examplesBuilder_ == null) { examples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { examplesBuilder_.clear(); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public Builder removeExamples(int index) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); examples_.remove(index); onChanged(); } else { examplesBuilder_.remove(index); } return this; } /** * repeated .prefab.ExampleContext examples = 1; */ public cloud.prefab.domain.Prefab.ExampleContext.Builder getExamplesBuilder( int index) { return getExamplesFieldBuilder().getBuilder(index); } /** * repeated .prefab.ExampleContext examples = 1; */ public cloud.prefab.domain.Prefab.ExampleContextOrBuilder getExamplesOrBuilder( int index) { if (examplesBuilder_ == null) { return examples_.get(index); } else { return examplesBuilder_.getMessageOrBuilder(index); } } /** * repeated .prefab.ExampleContext examples = 1; */ public java.util.List getExamplesOrBuilderList() { if (examplesBuilder_ != null) { return examplesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(examples_); } } /** * repeated .prefab.ExampleContext examples = 1; */ public cloud.prefab.domain.Prefab.ExampleContext.Builder addExamplesBuilder() { return getExamplesFieldBuilder().addBuilder( cloud.prefab.domain.Prefab.ExampleContext.getDefaultInstance()); } /** * repeated .prefab.ExampleContext examples = 1; */ public cloud.prefab.domain.Prefab.ExampleContext.Builder addExamplesBuilder( int index) { return getExamplesFieldBuilder().addBuilder( index, cloud.prefab.domain.Prefab.ExampleContext.getDefaultInstance()); } /** * repeated .prefab.ExampleContext examples = 1; */ public java.util.List getExamplesBuilderList() { return getExamplesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ExampleContext, cloud.prefab.domain.Prefab.ExampleContext.Builder, cloud.prefab.domain.Prefab.ExampleContextOrBuilder> getExamplesFieldBuilder() { if (examplesBuilder_ == null) { examplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cloud.prefab.domain.Prefab.ExampleContext, cloud.prefab.domain.Prefab.ExampleContext.Builder, cloud.prefab.domain.Prefab.ExampleContextOrBuilder>( examples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); examples_ = null; } return examplesBuilder_; } @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.ExampleContexts) } // @@protoc_insertion_point(class_scope:prefab.ExampleContexts) private static final cloud.prefab.domain.Prefab.ExampleContexts DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ExampleContexts(); } public static cloud.prefab.domain.Prefab.ExampleContexts getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExampleContexts parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContexts getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExampleContextOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ExampleContext) com.google.protobuf.MessageOrBuilder { /** * int64 timestamp = 1; * @return The timestamp. */ long getTimestamp(); /** * .prefab.ContextSet contextSet = 2; * @return Whether the contextSet field is set. */ boolean hasContextSet(); /** * .prefab.ContextSet contextSet = 2; * @return The contextSet. */ cloud.prefab.domain.Prefab.ContextSet getContextSet(); /** * .prefab.ContextSet contextSet = 2; */ cloud.prefab.domain.Prefab.ContextSetOrBuilder getContextSetOrBuilder(); } /** * Protobuf type {@code prefab.ExampleContext} */ public static final class ExampleContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ExampleContext) ExampleContextOrBuilder { private static final long serialVersionUID = 0L; // Use ExampleContext.newBuilder() to construct. private ExampleContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExampleContext() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExampleContext(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContext_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ExampleContext.class, cloud.prefab.domain.Prefab.ExampleContext.Builder.class); } private int bitField0_; public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_ = 0L; /** * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int CONTEXTSET_FIELD_NUMBER = 2; private cloud.prefab.domain.Prefab.ContextSet contextSet_; /** * .prefab.ContextSet contextSet = 2; * @return Whether the contextSet field is set. */ @java.lang.Override public boolean hasContextSet() { return ((bitField0_ & 0x00000001) != 0); } /** * .prefab.ContextSet contextSet = 2; * @return The contextSet. */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSet getContextSet() { return contextSet_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : contextSet_; } /** * .prefab.ContextSet contextSet = 2; */ @java.lang.Override public cloud.prefab.domain.Prefab.ContextSetOrBuilder getContextSetOrBuilder() { return contextSet_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : contextSet_; } 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getContextSet()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getContextSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ExampleContext)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ExampleContext other = (cloud.prefab.domain.Prefab.ExampleContext) obj; if (getTimestamp() != other.getTimestamp()) return false; if (hasContextSet() != other.hasContextSet()) return false; if (hasContextSet()) { if (!getContextSet() .equals(other.getContextSet())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); if (hasContextSet()) { hash = (37 * hash) + CONTEXTSET_FIELD_NUMBER; hash = (53 * hash) + getContextSet().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ExampleContext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ExampleContext 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.ExampleContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ExampleContext 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.ExampleContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ExampleContext parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ExampleContext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ExampleContext 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.ExampleContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ExampleContext 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.ExampleContext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ExampleContext 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.ExampleContext 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.ExampleContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ExampleContext) cloud.prefab.domain.Prefab.ExampleContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContext_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ExampleContext.class, cloud.prefab.domain.Prefab.ExampleContext.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ExampleContext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContextSetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestamp_ = 0L; contextSet_ = null; if (contextSetBuilder_ != null) { contextSetBuilder_.dispose(); contextSetBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ExampleContext_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContext getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ExampleContext.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContext build() { cloud.prefab.domain.Prefab.ExampleContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContext buildPartial() { cloud.prefab.domain.Prefab.ExampleContext result = new cloud.prefab.domain.Prefab.ExampleContext(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ExampleContext result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestamp_ = timestamp_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.contextSet_ = contextSetBuilder_ == null ? contextSet_ : contextSetBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cloud.prefab.domain.Prefab.ExampleContext) { return mergeFrom((cloud.prefab.domain.Prefab.ExampleContext)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ExampleContext other) { if (other == cloud.prefab.domain.Prefab.ExampleContext.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.hasContextSet()) { mergeContextSet(other.getContextSet()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getContextSetFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long timestamp_ ; /** * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 1; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 timestamp = 1; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0L; onChanged(); return this; } private cloud.prefab.domain.Prefab.ContextSet contextSet_; private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> contextSetBuilder_; /** * .prefab.ContextSet contextSet = 2; * @return Whether the contextSet field is set. */ public boolean hasContextSet() { return ((bitField0_ & 0x00000002) != 0); } /** * .prefab.ContextSet contextSet = 2; * @return The contextSet. */ public cloud.prefab.domain.Prefab.ContextSet getContextSet() { if (contextSetBuilder_ == null) { return contextSet_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : contextSet_; } else { return contextSetBuilder_.getMessage(); } } /** * .prefab.ContextSet contextSet = 2; */ public Builder setContextSet(cloud.prefab.domain.Prefab.ContextSet value) { if (contextSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } contextSet_ = value; } else { contextSetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ContextSet contextSet = 2; */ public Builder setContextSet( cloud.prefab.domain.Prefab.ContextSet.Builder builderForValue) { if (contextSetBuilder_ == null) { contextSet_ = builderForValue.build(); } else { contextSetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .prefab.ContextSet contextSet = 2; */ public Builder mergeContextSet(cloud.prefab.domain.Prefab.ContextSet value) { if (contextSetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && contextSet_ != null && contextSet_ != cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance()) { getContextSetBuilder().mergeFrom(value); } else { contextSet_ = value; } } else { contextSetBuilder_.mergeFrom(value); } if (contextSet_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .prefab.ContextSet contextSet = 2; */ public Builder clearContextSet() { bitField0_ = (bitField0_ & ~0x00000002); contextSet_ = null; if (contextSetBuilder_ != null) { contextSetBuilder_.dispose(); contextSetBuilder_ = null; } onChanged(); return this; } /** * .prefab.ContextSet contextSet = 2; */ public cloud.prefab.domain.Prefab.ContextSet.Builder getContextSetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getContextSetFieldBuilder().getBuilder(); } /** * .prefab.ContextSet contextSet = 2; */ public cloud.prefab.domain.Prefab.ContextSetOrBuilder getContextSetOrBuilder() { if (contextSetBuilder_ != null) { return contextSetBuilder_.getMessageOrBuilder(); } else { return contextSet_ == null ? cloud.prefab.domain.Prefab.ContextSet.getDefaultInstance() : contextSet_; } } /** * .prefab.ContextSet contextSet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder> getContextSetFieldBuilder() { if (contextSetBuilder_ == null) { contextSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cloud.prefab.domain.Prefab.ContextSet, cloud.prefab.domain.Prefab.ContextSet.Builder, cloud.prefab.domain.Prefab.ContextSetOrBuilder>( getContextSet(), getParentForChildren(), isClean()); contextSet_ = null; } return contextSetBuilder_; } @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.ExampleContext) } // @@protoc_insertion_point(class_scope:prefab.ExampleContext) private static final cloud.prefab.domain.Prefab.ExampleContext DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ExampleContext(); } public static cloud.prefab.domain.Prefab.ExampleContext getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExampleContext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ExampleContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:prefab.ClientStats) com.google.protobuf.MessageOrBuilder { /** * int64 start = 1; * @return The start. */ long getStart(); /** * int64 end = 2; * @return The end. */ long getEnd(); /** * uint64 dropped_event_count = 3; * @return The droppedEventCount. */ long getDroppedEventCount(); } /** * Protobuf type {@code prefab.ClientStats} */ public static final class ClientStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:prefab.ClientStats) ClientStatsOrBuilder { private static final long serialVersionUID = 0L; // Use ClientStats.newBuilder() to construct. private ClientStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientStats_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ClientStats.class, cloud.prefab.domain.Prefab.ClientStats.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** * int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** * int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } public static final int DROPPED_EVENT_COUNT_FIELD_NUMBER = 3; private long droppedEventCount_ = 0L; /** * uint64 dropped_event_count = 3; * @return The droppedEventCount. */ @java.lang.Override public long getDroppedEventCount() { return droppedEventCount_; } 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 (start_ != 0L) { output.writeInt64(1, start_); } if (end_ != 0L) { output.writeInt64(2, end_); } if (droppedEventCount_ != 0L) { output.writeUInt64(3, droppedEventCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, start_); } if (end_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, end_); } if (droppedEventCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, droppedEventCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cloud.prefab.domain.Prefab.ClientStats)) { return super.equals(obj); } cloud.prefab.domain.Prefab.ClientStats other = (cloud.prefab.domain.Prefab.ClientStats) obj; if (getStart() != other.getStart()) return false; if (getEnd() != other.getEnd()) return false; if (getDroppedEventCount() != other.getDroppedEventCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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 = (37 * hash) + DROPPED_EVENT_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDroppedEventCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static cloud.prefab.domain.Prefab.ClientStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientStats 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.ClientStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientStats 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.ClientStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cloud.prefab.domain.Prefab.ClientStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cloud.prefab.domain.Prefab.ClientStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientStats 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.ClientStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientStats 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.ClientStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cloud.prefab.domain.Prefab.ClientStats 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.ClientStats 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.ClientStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:prefab.ClientStats) cloud.prefab.domain.Prefab.ClientStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientStats_fieldAccessorTable .ensureFieldAccessorsInitialized( cloud.prefab.domain.Prefab.ClientStats.class, cloud.prefab.domain.Prefab.ClientStats.Builder.class); } // Construct using cloud.prefab.domain.Prefab.ClientStats.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0L; end_ = 0L; droppedEventCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cloud.prefab.domain.Prefab.internal_static_prefab_ClientStats_descriptor; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientStats getDefaultInstanceForType() { return cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance(); } @java.lang.Override public cloud.prefab.domain.Prefab.ClientStats build() { cloud.prefab.domain.Prefab.ClientStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientStats buildPartial() { cloud.prefab.domain.Prefab.ClientStats result = new cloud.prefab.domain.Prefab.ClientStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(cloud.prefab.domain.Prefab.ClientStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.droppedEventCount_ = droppedEventCount_; } } @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.ClientStats) { return mergeFrom((cloud.prefab.domain.Prefab.ClientStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cloud.prefab.domain.Prefab.ClientStats other) { if (other == cloud.prefab.domain.Prefab.ClientStats.getDefaultInstance()) return this; if (other.getStart() != 0L) { setStart(other.getStart()); } if (other.getEnd() != 0L) { setEnd(other.getEnd()); } if (other.getDroppedEventCount() != 0L) { setDroppedEventCount(other.getDroppedEventCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { start_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { end_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { droppedEventCount_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long start_ ; /** * int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** * int64 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0L; onChanged(); return this; } private long end_ ; /** * int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } /** * int64 end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0L; onChanged(); return this; } private long droppedEventCount_ ; /** * uint64 dropped_event_count = 3; * @return The droppedEventCount. */ @java.lang.Override public long getDroppedEventCount() { return droppedEventCount_; } /** * uint64 dropped_event_count = 3; * @param value The droppedEventCount to set. * @return This builder for chaining. */ public Builder setDroppedEventCount(long value) { droppedEventCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * uint64 dropped_event_count = 3; * @return This builder for chaining. */ public Builder clearDroppedEventCount() { bitField0_ = (bitField0_ & ~0x00000004); droppedEventCount_ = 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.ClientStats) } // @@protoc_insertion_point(class_scope:prefab.ClientStats) private static final cloud.prefab.domain.Prefab.ClientStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cloud.prefab.domain.Prefab.ClientStats(); } public static cloud.prefab.domain.Prefab.ClientStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cloud.prefab.domain.Prefab.ClientStats 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_Json_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Json_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_IsoDuration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_IsoDuration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Provided_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Provided_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_IntRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_IntRange_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_ApiKeyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ApiKeyMetadata_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_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_Loggers_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Loggers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Logger_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Logger_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_LoggerReportResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_LoggerReportResponse_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_ContextSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ContextSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Context_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Context_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_Context_ValuesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_Context_ValuesEntry_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_ConfigEvaluationMetaData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigEvaluationMetaData_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_ClientDuration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ClientDuration_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; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ContextShape_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ContextShape_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ContextShape_FieldTypesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ContextShape_FieldTypesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ContextShapes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ContextShapes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_EvaluatedKeys_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_EvaluatedKeys_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_EvaluatedConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_EvaluatedConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_EvaluatedConfigs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_EvaluatedConfigs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigEvaluationCounter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigEvaluationCounter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigEvaluationSummary_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigEvaluationSummary_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ConfigEvaluationSummaries_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ConfigEvaluationSummaries_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_LoggersTelemetryEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_LoggersTelemetryEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_TelemetryEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_TelemetryEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_TelemetryEvents_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_TelemetryEvents_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_TelemetryEventsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_TelemetryEventsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ExampleContexts_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ExampleContexts_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ExampleContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ExampleContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_prefab_ClientStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_prefab_ClientStats_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\"\217\004\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\000\022%\n" + "\tint_range\030\013 \001(\0132\020.prefab.IntRangeH\000\022$\n\010" + "provided\030\014 \001(\0132\020.prefab.ProvidedH\000\022\'\n\010du" + "ration\030\017 \001(\0132\023.prefab.IsoDurationH\000\022\034\n\004j" + "son\030\020 \001(\0132\014.prefab.JsonH\000\022\031\n\014confidentia" + "l\030\r \001(\010H\001\210\001\001\022\031\n\014decrypt_with\030\016 \001(\tH\002\210\001\001B" + "\006\n\004typeB\017\n\r_confidentialB\017\n\r_decrypt_wit" + "h\"\024\n\004Json\022\014\n\004json\030\001 \001(\t\"!\n\013IsoDuration\022\022" + "\n\ndefinition\030\001 \001(\t\"b\n\010Provided\022+\n\006source" + "\030\001 \001(\0162\026.prefab.ProvidedSourceH\000\210\001\001\022\023\n\006l" + "ookup\030\002 \001(\tH\001\210\001\001B\t\n\007_sourceB\t\n\007_lookup\"B" + "\n\010IntRange\022\022\n\005start\030\001 \001(\003H\000\210\001\001\022\020\n\003end\030\002 " + "\001(\003H\001\210\001\001B\010\n\006_startB\006\n\004_end\"\034\n\nStringList" + "\022\016\n\006values\030\001 \003(\t\"C\n\rWeightedValue\022\016\n\006wei" + "ght\030\001 \001(\005\022\"\n\005value\030\002 \001(\0132\023.prefab.Config" + "Value\"~\n\016WeightedValues\022.\n\017weighted_valu" + "es\030\001 \003(\0132\025.prefab.WeightedValue\022\"\n\025hash_" + "by_property_name\030\002 \001(\tH\000\210\001\001B\030\n\026_hash_by_" + "property_name\"X\n\016ApiKeyMetadata\022\023\n\006key_i" + "d\030\001 \001(\tH\000\210\001\001\022\024\n\007user_id\030\003 \001(\tH\001\210\001\001B\t\n\007_k" + "ey_idB\n\n\010_user_idJ\004\010\002\020\003\"\240\002\n\007Configs\022\037\n\007c" + "onfigs\030\001 \003(\0132\016.prefab.Config\022<\n\026config_s" + "ervice_pointer\030\002 \001(\0132\034.prefab.ConfigServ" + "icePointer\0224\n\017apikey_metadata\030\003 \001(\0132\026.pr" + "efab.ApiKeyMetadataH\000\210\001\001\0220\n\017default_cont" + "ext\030\004 \001(\0132\022.prefab.ContextSetH\001\210\001\001\022\027\n\nke" + "ep_alive\030\005 \001(\010H\002\210\001\001B\022\n\020_apikey_metadataB" + "\022\n\020_default_contextB\r\n\013_keep_alive\"\374\003\n\006C" + "onfig\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.prefab." + "ChangedBy\022\037\n\004rows\030\005 \003(\0132\021.prefab.ConfigR" + "ow\022-\n\020allowable_values\030\006 \003(\0132\023.prefab.Co" + "nfigValue\022\'\n\013config_type\030\007 \001(\0162\022.prefab." + "ConfigType\022\025\n\010draft_id\030\010 \001(\003H\000\210\001\001\022,\n\nval" + "ue_type\030\t \001(\0162\030.prefab.Config.ValueType\022" + "\032\n\022send_to_client_sdk\030\n \001(\010\"\266\001\n\tValueTyp" + "e\022\026\n\022NOT_SET_VALUE_TYPE\020\000\022\007\n\003INT\020\001\022\n\n\006ST" + "RING\020\002\022\t\n\005BYTES\020\003\022\n\n\006DOUBLE\020\004\022\010\n\004BOOL\020\005\022" + "\024\n\020LIMIT_DEFINITION\020\007\022\r\n\tLOG_LEVEL\020\t\022\017\n\013" + "STRING_LIST\020\n\022\r\n\tINT_RANGE\020\013\022\014\n\010DURATION" + "\020\014\022\010\n\004JSON\020\rB\013\n\t_draft_id\"?\n\tChangedBy\022\017" + "\n\007user_id\030\001 \001(\003\022\r\n\005email\030\002 \001(\t\022\022\n\napi_ke" + "y_id\030\003 \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.C" + "onditionalValue\0225\n\nproperties\030\003 \003(\0132!.pr" + "efab.ConfigRow.PropertiesEntry\032F\n\017Proper" + "tiesEntry\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_i" + "d\"[\n\020ConditionalValue\022#\n\010criteria\030\001 \003(\0132" + "\021.prefab.Criterion\022\"\n\005value\030\002 \001(\0132\023.pref" + "ab.ConfigValue\"\224\003\n\tCriterion\022\025\n\rproperty" + "_name\030\001 \001(\t\0225\n\010operator\030\002 \001(\0162#.prefab.C" + "riterion.CriterionOperator\022+\n\016value_to_m" + "atch\030\003 \001(\0132\023.prefab.ConfigValue\"\213\002\n\021Crit" + "erionOperator\022\013\n\007NOT_SET\020\000\022\021\n\rLOOKUP_KEY" + "_IN\020\001\022\025\n\021LOOKUP_KEY_NOT_IN\020\002\022\n\n\006IN_SEG\020\003" + "\022\016\n\nNOT_IN_SEG\020\004\022\017\n\013ALWAYS_TRUE\020\005\022\022\n\016PRO" + "P_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_NO" + "T_END_WITH_ONE_OF\020\t\022\026\n\022HIERARCHICAL_MATC" + "H\020\n\022\020\n\014IN_INT_RANGE\020\013\"\211\001\n\007Loggers\022\037\n\007log" + "gers\030\001 \003(\0132\016.prefab.Logger\022\020\n\010start_at\030\002" + " \001(\003\022\016\n\006end_at\030\003 \001(\003\022\025\n\rinstance_hash\030\004 " + "\001(\t\022\026\n\tnamespace\030\005 \001(\tH\000\210\001\001B\014\n\n_namespac" + "e\"\331\001\n\006Logger\022\023\n\013logger_name\030\001 \001(\t\022\023\n\006tra" + "ces\030\002 \001(\003H\000\210\001\001\022\023\n\006debugs\030\003 \001(\003H\001\210\001\001\022\022\n\005i" + "nfos\030\004 \001(\003H\002\210\001\001\022\022\n\005warns\030\005 \001(\003H\003\210\001\001\022\023\n\006e" + "rrors\030\006 \001(\003H\004\210\001\001\022\023\n\006fatals\030\007 \001(\003H\005\210\001\001B\t\n" + "\007_tracesB\t\n\007_debugsB\010\n\006_infosB\010\n\006_warnsB" + "\t\n\007_errorsB\t\n\007_fatals\"\026\n\024LoggerReportRes" + "ponse\"\333\003\n\rLimitResponse\022\016\n\006passed\030\001 \001(\010\022" + "\022\n\nexpires_at\030\002 \001(\003\022\026\n\016enforced_group\030\003 " + "\001(\t\022\026\n\016current_bucket\030\004 \001(\003\022\024\n\014policy_gr" + "oup\030\005 \001(\t\022;\n\013policy_name\030\006 \001(\0162&.prefab." + "LimitResponse.LimitPolicyNames\022\024\n\014policy" + "_limit\030\007 \001(\005\022\016\n\006amount\030\010 \001(\003\022\026\n\016limit_re" + "set_at\030\t \001(\003\0229\n\014safety_level\030\n \001(\0162#.pre" + "fab.LimitDefinition.SafetyLevel\"\251\001\n\020Limi" + "tPolicyNames\022\013\n\007NOT_SET\020\000\022\024\n\020SECONDLY_RO" + "LLING\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\016YEARLY_ROLLIN" + "G\020\n\"\231\002\n\014LimitRequest\022\022\n\naccount_id\030\001 \001(\003" + "\022\026\n\016acquire_amount\030\002 \001(\005\022\016\n\006groups\030\003 \003(\t" + "\022:\n\016limit_combiner\030\004 \001(\0162\".prefab.LimitR" + "equest.LimitCombiner\022\036\n\026allow_partial_re" + "sponse\030\005 \001(\010\0229\n\014safety_level\030\006 \001(\0162#.pre" + "fab.LimitDefinition.SafetyLevel\"6\n\rLimit" + "Combiner\022\013\n\007NOT_SET\020\000\022\013\n\007MINIMUM\020\001\022\013\n\007MA" + "XIMUM\020\002\"/\n\nContextSet\022!\n\010contexts\030\001 \003(\0132" + "\017.prefab.Context\"\226\001\n\007Context\022\021\n\004type\030\001 \001" + "(\tH\000\210\001\001\022+\n\006values\030\002 \003(\0132\033.prefab.Context" + ".ValuesEntry\032B\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t" + "\022\"\n\005value\030\002 \001(\0132\023.prefab.ConfigValue:\0028\001" + "B\007\n\005_type\"\223\001\n\010Identity\022\023\n\006lookup\030\001 \001(\tH\000" + "\210\001\001\0224\n\nattributes\030\002 \003(\0132 .prefab.Identit" + "y.AttributesEntry\0321\n\017AttributesEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007_lookup\"" + "\326\002\n\030ConfigEvaluationMetaData\022\035\n\020config_r" + "ow_index\030\001 \001(\003H\000\210\001\001\022$\n\027conditional_value" + "_index\030\002 \001(\003H\001\210\001\001\022!\n\024weighted_value_inde" + "x\030\003 \001(\003H\002\210\001\001\022%\n\004type\030\004 \001(\0162\022.prefab.Conf" + "igTypeH\003\210\001\001\022\017\n\002id\030\005 \001(\003H\004\210\001\001\0221\n\nvalue_ty" + "pe\030\006 \001(\0162\030.prefab.Config.ValueTypeH\005\210\001\001B" + "\023\n\021_config_row_indexB\032\n\030_conditional_val" + "ue_indexB\027\n\025_weighted_value_indexB\007\n\005_ty" + "peB\005\n\003_idB\r\n\013_value_type\"\355\002\n\021ClientConfi" + "gValue\022\r\n\003int\030\001 \001(\003H\000\022\020\n\006string\030\002 \001(\tH\000\022" + "\020\n\006double\030\003 \001(\001H\000\022\016\n\004bool\030\004 \001(\010H\000\022%\n\tlog" + "_level\030\005 \001(\0162\020.prefab.LogLevelH\000\022)\n\013stri" + "ng_list\030\007 \001(\0132\022.prefab.StringListH\000\022%\n\ti" + "nt_range\030\010 \001(\0132\020.prefab.IntRangeH\000\022*\n\010du" + "ration\030\t \001(\0132\026.prefab.ClientDurationH\000\022I" + "\n\032config_evaluation_metadata\030\006 \001(\0132 .pre" + "fab.ConfigEvaluationMetaDataH\001\210\001\001B\006\n\004typ" + "eB\035\n\033_config_evaluation_metadata\"0\n\016Clie" + "ntDuration\022\017\n\007seconds\030\001 \001(\003\022\r\n\005nanos\030\002 \001" + "(\005\"\244\002\n\021ConfigEvaluations\0225\n\006values\030\001 \003(\013" + "2%.prefab.ConfigEvaluations.ValuesEntry\022" + "4\n\017apikey_metadata\030\002 \001(\0132\026.prefab.ApiKey" + "MetadataH\000\210\001\001\0220\n\017default_context\030\003 \001(\0132\022" + ".prefab.ContextSetH\001\210\001\001\032H\n\013ValuesEntry\022\013" + "\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.prefab.Clie" + "ntConfigValue:\0028\001B\022\n\020_apikey_metadataB\022\n" + "\020_default_context\"\250\002\n\017LimitDefinition\022;\n" + "\013policy_name\030\002 \001(\0162&.prefab.LimitRespons" + "e.LimitPolicyNames\022\r\n\005limit\030\003 \001(\005\022\r\n\005bur" + "st\030\004 \001(\005\022\022\n\naccount_id\030\005 \001(\003\022\025\n\rlast_mod" + "ified\030\006 \001(\003\022\022\n\nreturnable\030\007 \001(\010\0229\n\014safet" + "y_level\030\010 \001(\0162#.prefab.LimitDefinition.S" + "afetyLevel\"@\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\020" + "LimitDefinitions\022,\n\013definitions\030\001 \003(\0132\027." + "prefab.LimitDefinition\"\212\001\n\017BufferedReque" + "st\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\014limit_group" + "s\030\005 \003(\t\022\024\n\014content_type\030\006 \001(\t\022\014\n\004fifo\030\007 " + "\001(\010\"\224\001\n\014BatchRequest\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\014limit_groups\030\005 \003(\t\022\026\n\016batch_templ" + "ate\030\006 \001(\t\022\027\n\017batch_separator\030\007 \001(\t\" \n\rBa" + "sicResponse\022\017\n\007message\030\001 \001(\t\"3\n\020Creation" + "Response\022\017\n\007message\030\001 \001(\t\022\016\n\006new_id\030\002 \001(" + "\003\"h\n\007IdBlock\022\022\n\nproject_id\030\001 \001(\003\022\026\n\016proj" + "ect_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\016IdBlockRe" + "quest\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\014\n\004size" + "\030\004 \001(\003\"\212\001\n\014ContextShape\022\014\n\004name\030\001 \001(\t\0229\n" + "\013field_types\030\002 \003(\0132$.prefab.ContextShape" + ".FieldTypesEntry\0321\n\017FieldTypesEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\"[\n\rContextSh" + "apes\022$\n\006shapes\030\001 \003(\0132\024.prefab.ContextSha" + "pe\022\026\n\tnamespace\030\002 \001(\tH\000\210\001\001B\014\n\n_namespace" + "\"C\n\rEvaluatedKeys\022\014\n\004keys\030\001 \003(\t\022\026\n\tnames" + "pace\030\002 \001(\tH\000\210\001\001B\014\n\n_namespace\"\223\001\n\017Evalua" + "tedConfig\022\013\n\003key\030\001 \001(\t\022\026\n\016config_version" + "\030\002 \001(\003\022#\n\006result\030\003 \001(\0132\023.prefab.ConfigVa" + "lue\022#\n\007context\030\004 \001(\0132\022.prefab.ContextSet" + "\022\021\n\ttimestamp\030\005 \001(\003\"<\n\020EvaluatedConfigs\022" + "(\n\007configs\030\001 \003(\0132\027.prefab.EvaluatedConfi" + "g\"\304\003\n\027ConfigEvaluationCounter\022\r\n\005count\030\001" + " \001(\003\022\026\n\tconfig_id\030\002 \001(\003H\000\210\001\001\022\033\n\016selected" + "_index\030\003 \001(\rH\001\210\001\001\0220\n\016selected_value\030\004 \001(" + "\0132\023.prefab.ConfigValueH\002\210\001\001\022\035\n\020config_ro" + "w_index\030\005 \001(\rH\003\210\001\001\022$\n\027conditional_value_" + "index\030\006 \001(\rH\004\210\001\001\022!\n\024weighted_value_index" + "\030\007 \001(\rH\005\210\001\001\0226\n\006reason\030\010 \001(\0162&.prefab.Con" + "figEvaluationCounter.Reason\"\025\n\006Reason\022\013\n" + "\007UNKNOWN\020\000B\014\n\n_config_idB\021\n\017_selected_in" + "dexB\021\n\017_selected_valueB\023\n\021_config_row_in" + "dexB\032\n\030_conditional_value_indexB\027\n\025_weig" + "hted_value_index\"{\n\027ConfigEvaluationSumm" + "ary\022\013\n\003key\030\001 \001(\t\022 \n\004type\030\002 \001(\0162\022.prefab." + "ConfigType\0221\n\010counters\030\003 \003(\0132\037.prefab.Co" + "nfigEvaluationCounter\"k\n\031ConfigEvaluatio" + "nSummaries\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\0222" + "\n\tsummaries\030\003 \003(\0132\037.prefab.ConfigEvaluat" + "ionSummary\"Z\n\025LoggersTelemetryEvent\022\037\n\007l" + "oggers\030\001 \003(\0132\016.prefab.Logger\022\020\n\010start_at" + "\030\002 \001(\003\022\016\n\006end_at\030\003 \001(\003\"\230\002\n\016TelemetryEven" + "t\0226\n\tsummaries\030\002 \001(\0132!.prefab.ConfigEval" + "uationSummariesH\000\0223\n\020example_contexts\030\003 " + "\001(\0132\027.prefab.ExampleContextsH\000\022+\n\014client" + "_stats\030\004 \001(\0132\023.prefab.ClientStatsH\000\0220\n\007l" + "oggers\030\005 \001(\0132\035.prefab.LoggersTelemetryEv" + "entH\000\022/\n\016context_shapes\030\006 \001(\0132\025.prefab.C" + "ontextShapesH\000B\t\n\007payload\"P\n\017TelemetryEv" + "ents\022\025\n\rinstance_hash\030\001 \001(\t\022&\n\006events\030\002 " + "\003(\0132\026.prefab.TelemetryEvent\"*\n\027Telemetry" + "EventsResponse\022\017\n\007success\030\001 \001(\010\";\n\017Examp" + "leContexts\022(\n\010examples\030\001 \003(\0132\026.prefab.Ex" + "ampleContext\"K\n\016ExampleContext\022\021\n\ttimest" + "amp\030\001 \001(\003\022&\n\ncontextSet\030\002 \001(\0132\022.prefab.C" + "ontextSet\"F\n\013ClientStats\022\r\n\005start\030\001 \001(\003\022" + "\013\n\003end\030\002 \001(\003\022\033\n\023dropped_event_count\030\003 \001(" + "\004*:\n\016ProvidedSource\022\033\n\027PROVIDED_SOURCE_N" + "OT_SET\020\000\022\013\n\007ENV_VAR\020\001*\202\001\n\nConfigType\022\027\n\023" + "NOT_SET_CONFIG_TYPE\020\000\022\n\n\006CONFIG\020\001\022\020\n\014FEA" + "TURE_FLAG\020\002\022\r\n\tLOG_LEVEL\020\003\022\013\n\007SEGMENT\020\004\022" + "\024\n\020LIMIT_DEFINITION\020\005\022\013\n\007DELETED\020\006*a\n\010Lo" + "gLevel\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\005ERROR" + "\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\005T" + "HROW\020\003BL\n\023cloud.prefab.domainB\006PrefabZ-g" + "ithub.com/prefab-cloud/prefab-cloud-go/p" + "rotob\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", "IntRange", "Provided", "Duration", "Json", "Confidential", "DecryptWith", "Type", "Confidential", "DecryptWith", }); internal_static_prefab_Json_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_prefab_Json_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Json_descriptor, new java.lang.String[] { "Json", }); internal_static_prefab_IsoDuration_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_prefab_IsoDuration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_IsoDuration_descriptor, new java.lang.String[] { "Definition", }); internal_static_prefab_Provided_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_prefab_Provided_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Provided_descriptor, new java.lang.String[] { "Source", "Lookup", "Source", "Lookup", }); internal_static_prefab_IntRange_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_prefab_IntRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_IntRange_descriptor, new java.lang.String[] { "Start", "End", "Start", "End", }); internal_static_prefab_StringList_descriptor = getDescriptor().getMessageTypes().get(6); 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(7); 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(8); internal_static_prefab_WeightedValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_WeightedValues_descriptor, new java.lang.String[] { "WeightedValues", "HashByPropertyName", "HashByPropertyName", }); internal_static_prefab_ApiKeyMetadata_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_prefab_ApiKeyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ApiKeyMetadata_descriptor, new java.lang.String[] { "KeyId", "UserId", "KeyId", "UserId", }); internal_static_prefab_Configs_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_prefab_Configs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Configs_descriptor, new java.lang.String[] { "Configs", "ConfigServicePointer", "ApikeyMetadata", "DefaultContext", "KeepAlive", "ApikeyMetadata", "DefaultContext", "KeepAlive", }); internal_static_prefab_Config_descriptor = getDescriptor().getMessageTypes().get(11); 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", "ValueType", "SendToClientSdk", "DraftId", }); internal_static_prefab_ChangedBy_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_prefab_ChangedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ChangedBy_descriptor, new java.lang.String[] { "UserId", "Email", "ApiKeyId", }); internal_static_prefab_ConfigRow_descriptor = getDescriptor().getMessageTypes().get(13); 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(14); 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_Criterion_descriptor = getDescriptor().getMessageTypes().get(15); 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_Loggers_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_prefab_Loggers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Loggers_descriptor, new java.lang.String[] { "Loggers", "StartAt", "EndAt", "InstanceHash", "Namespace", "Namespace", }); internal_static_prefab_Logger_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_prefab_Logger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Logger_descriptor, new java.lang.String[] { "LoggerName", "Traces", "Debugs", "Infos", "Warns", "Errors", "Fatals", "Traces", "Debugs", "Infos", "Warns", "Errors", "Fatals", }); internal_static_prefab_LoggerReportResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_prefab_LoggerReportResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_LoggerReportResponse_descriptor, new java.lang.String[] { }); internal_static_prefab_LimitResponse_descriptor = getDescriptor().getMessageTypes().get(19); 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(20); 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_ContextSet_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_prefab_ContextSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ContextSet_descriptor, new java.lang.String[] { "Contexts", }); internal_static_prefab_Context_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_prefab_Context_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Context_descriptor, new java.lang.String[] { "Type", "Values", "Type", }); internal_static_prefab_Context_ValuesEntry_descriptor = internal_static_prefab_Context_descriptor.getNestedTypes().get(0); internal_static_prefab_Context_ValuesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_Context_ValuesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_prefab_Identity_descriptor = getDescriptor().getMessageTypes().get(23); 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_ConfigEvaluationMetaData_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_prefab_ConfigEvaluationMetaData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluationMetaData_descriptor, new java.lang.String[] { "ConfigRowIndex", "ConditionalValueIndex", "WeightedValueIndex", "Type", "Id", "ValueType", "ConfigRowIndex", "ConditionalValueIndex", "WeightedValueIndex", "Type", "Id", "ValueType", }); internal_static_prefab_ClientConfigValue_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_prefab_ClientConfigValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ClientConfigValue_descriptor, new java.lang.String[] { "Int", "String", "Double", "Bool", "LogLevel", "StringList", "IntRange", "Duration", "ConfigEvaluationMetadata", "Type", "ConfigEvaluationMetadata", }); internal_static_prefab_ClientDuration_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_prefab_ClientDuration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ClientDuration_descriptor, new java.lang.String[] { "Seconds", "Nanos", }); internal_static_prefab_ConfigEvaluations_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_prefab_ConfigEvaluations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluations_descriptor, new java.lang.String[] { "Values", "ApikeyMetadata", "DefaultContext", "ApikeyMetadata", "DefaultContext", }); 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(28); 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(29); 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(30); 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(31); 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(32); 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(33); 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(34); 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(35); internal_static_prefab_IdBlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_IdBlockRequest_descriptor, new java.lang.String[] { "ProjectId", "ProjectEnvId", "SequenceName", "Size", }); internal_static_prefab_ContextShape_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_prefab_ContextShape_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ContextShape_descriptor, new java.lang.String[] { "Name", "FieldTypes", }); internal_static_prefab_ContextShape_FieldTypesEntry_descriptor = internal_static_prefab_ContextShape_descriptor.getNestedTypes().get(0); internal_static_prefab_ContextShape_FieldTypesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ContextShape_FieldTypesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_prefab_ContextShapes_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_prefab_ContextShapes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ContextShapes_descriptor, new java.lang.String[] { "Shapes", "Namespace", "Namespace", }); internal_static_prefab_EvaluatedKeys_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_prefab_EvaluatedKeys_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_EvaluatedKeys_descriptor, new java.lang.String[] { "Keys", "Namespace", "Namespace", }); internal_static_prefab_EvaluatedConfig_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_prefab_EvaluatedConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_EvaluatedConfig_descriptor, new java.lang.String[] { "Key", "ConfigVersion", "Result", "Context", "Timestamp", }); internal_static_prefab_EvaluatedConfigs_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_prefab_EvaluatedConfigs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_EvaluatedConfigs_descriptor, new java.lang.String[] { "Configs", }); internal_static_prefab_ConfigEvaluationCounter_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_prefab_ConfigEvaluationCounter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluationCounter_descriptor, new java.lang.String[] { "Count", "ConfigId", "SelectedIndex", "SelectedValue", "ConfigRowIndex", "ConditionalValueIndex", "WeightedValueIndex", "Reason", "ConfigId", "SelectedIndex", "SelectedValue", "ConfigRowIndex", "ConditionalValueIndex", "WeightedValueIndex", }); internal_static_prefab_ConfigEvaluationSummary_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_prefab_ConfigEvaluationSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluationSummary_descriptor, new java.lang.String[] { "Key", "Type", "Counters", }); internal_static_prefab_ConfigEvaluationSummaries_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_prefab_ConfigEvaluationSummaries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ConfigEvaluationSummaries_descriptor, new java.lang.String[] { "Start", "End", "Summaries", }); internal_static_prefab_LoggersTelemetryEvent_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_prefab_LoggersTelemetryEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_LoggersTelemetryEvent_descriptor, new java.lang.String[] { "Loggers", "StartAt", "EndAt", }); internal_static_prefab_TelemetryEvent_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_prefab_TelemetryEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_TelemetryEvent_descriptor, new java.lang.String[] { "Summaries", "ExampleContexts", "ClientStats", "Loggers", "ContextShapes", "Payload", }); internal_static_prefab_TelemetryEvents_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_prefab_TelemetryEvents_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_TelemetryEvents_descriptor, new java.lang.String[] { "InstanceHash", "Events", }); internal_static_prefab_TelemetryEventsResponse_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_prefab_TelemetryEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_TelemetryEventsResponse_descriptor, new java.lang.String[] { "Success", }); internal_static_prefab_ExampleContexts_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_prefab_ExampleContexts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ExampleContexts_descriptor, new java.lang.String[] { "Examples", }); internal_static_prefab_ExampleContext_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_prefab_ExampleContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ExampleContext_descriptor, new java.lang.String[] { "Timestamp", "ContextSet", }); internal_static_prefab_ClientStats_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_prefab_ClientStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_prefab_ClientStats_descriptor, new java.lang.String[] { "Start", "End", "DroppedEventCount", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy