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

com.google.cloud.dialogflow.cx.v3beta1.Experiment Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3beta1/experiment.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.cx.v3beta1;

/**
 *
 *
 * 
 * Represents an experiment in an environment.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment} */ public final class Experiment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Experiment) ExperimentOrBuilder { private static final long serialVersionUID = 0L; // Use Experiment.newBuilder() to construct. private Experiment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Experiment() { name_ = ""; displayName_ = ""; description_ = ""; state_ = 0; rolloutFailureReason_ = ""; variantsHistory_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Experiment(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Builder.class); } /** * * *
   * The state of the experiment.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.Experiment.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * State unspecified.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * The experiment is created but not started yet.
     * 
* * DRAFT = 1; */ DRAFT(1), /** * * *
     * The experiment is running.
     * 
* * RUNNING = 2; */ RUNNING(2), /** * * *
     * The experiment is done.
     * 
* * DONE = 3; */ DONE(3), /** * * *
     * The experiment with auto-rollout enabled has failed.
     * 
* * ROLLOUT_FAILED = 4; */ ROLLOUT_FAILED(4), UNRECOGNIZED(-1), ; /** * * *
     * State unspecified.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * The experiment is created but not started yet.
     * 
* * DRAFT = 1; */ public static final int DRAFT_VALUE = 1; /** * * *
     * The experiment is running.
     * 
* * RUNNING = 2; */ public static final int RUNNING_VALUE = 2; /** * * *
     * The experiment is done.
     * 
* * DONE = 3; */ public static final int DONE_VALUE = 3; /** * * *
     * The experiment with auto-rollout enabled has failed.
     * 
* * ROLLOUT_FAILED = 4; */ public static final int ROLLOUT_FAILED_VALUE = 4; 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 State 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 State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return DRAFT; case 2: return RUNNING; case 3: return DONE; case 4: return ROLLOUT_FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDescriptor() .getEnumTypes() .get(0); } private static final State[] VALUES = values(); public static State 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 State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.State) } public interface DefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) com.google.protobuf.MessageOrBuilder { /** * * *
     * The condition defines which subset of sessions are selected for
     * this experiment. If not specified, all sessions are eligible. E.g.
     * "query_input.language_code=en" See the [conditions
     * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
     * 
* * string condition = 1; * * @return The condition. */ java.lang.String getCondition(); /** * * *
     * The condition defines which subset of sessions are selected for
     * this experiment. If not specified, all sessions are eligible. E.g.
     * "query_input.language_code=en" See the [conditions
     * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
     * 
* * string condition = 1; * * @return The bytes for condition. */ com.google.protobuf.ByteString getConditionBytes(); /** * * *
     * The flow versions as the variants of this experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; * * @return Whether the versionVariants field is set. */ boolean hasVersionVariants(); /** * * *
     * The flow versions as the variants of this experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; * * @return The versionVariants. */ com.google.cloud.dialogflow.cx.v3beta1.VersionVariants getVersionVariants(); /** * * *
     * The flow versions as the variants of this experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ com.google.cloud.dialogflow.cx.v3beta1.VersionVariantsOrBuilder getVersionVariantsOrBuilder(); com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.VariantsCase getVariantsCase(); } /** * * *
   * Definition of the experiment.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} */ public static final class Definition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) DefinitionOrBuilder { private static final long serialVersionUID = 0L; // Use Definition.newBuilder() to construct. private Definition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Definition() { condition_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Definition(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Definition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Definition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder.class); } private int variantsCase_ = 0; @SuppressWarnings("serial") private java.lang.Object variants_; public enum VariantsCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VERSION_VARIANTS(2), VARIANTS_NOT_SET(0); private final int value; private VariantsCase(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 VariantsCase valueOf(int value) { return forNumber(value); } public static VariantsCase forNumber(int value) { switch (value) { case 2: return VERSION_VARIANTS; case 0: return VARIANTS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public VariantsCase getVariantsCase() { return VariantsCase.forNumber(variantsCase_); } public static final int CONDITION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object condition_ = ""; /** * * *
     * The condition defines which subset of sessions are selected for
     * this experiment. If not specified, all sessions are eligible. E.g.
     * "query_input.language_code=en" See the [conditions
     * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
     * 
* * string condition = 1; * * @return The condition. */ @java.lang.Override public java.lang.String getCondition() { java.lang.Object ref = condition_; 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(); condition_ = s; return s; } } /** * * *
     * The condition defines which subset of sessions are selected for
     * this experiment. If not specified, all sessions are eligible. E.g.
     * "query_input.language_code=en" See the [conditions
     * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
     * 
* * string condition = 1; * * @return The bytes for condition. */ @java.lang.Override public com.google.protobuf.ByteString getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); condition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_VARIANTS_FIELD_NUMBER = 2; /** * * *
     * The flow versions as the variants of this experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; * * @return Whether the versionVariants field is set. */ @java.lang.Override public boolean hasVersionVariants() { return variantsCase_ == 2; } /** * * *
     * The flow versions as the variants of this experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; * * @return The versionVariants. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants getVersionVariants() { if (variantsCase_ == 2) { return (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_; } return com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.getDefaultInstance(); } /** * * *
     * The flow versions as the variants of this experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VersionVariantsOrBuilder getVersionVariantsOrBuilder() { if (variantsCase_ == 2) { return (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_; } return com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, condition_); } if (variantsCase_ == 2) { output.writeMessage(2, (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_); } 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(condition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, condition_); } if (variantsCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_); } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition other = (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) obj; if (!getCondition().equals(other.getCondition())) return false; if (!getVariantsCase().equals(other.getVariantsCase())) return false; switch (variantsCase_) { case 2: if (!getVersionVariants().equals(other.getVersionVariants())) 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(); hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); switch (variantsCase_) { case 2: hash = (37 * hash) + VERSION_VARIANTS_FIELD_NUMBER; hash = (53 * hash) + getVersionVariants().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition 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( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition 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; } /** * * *
     * Definition of the experiment.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Definition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Definition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; condition_ = ""; if (versionVariantsBuilder_ != null) { versionVariantsBuilder_.clear(); } variantsCase_ = 0; variants_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Definition_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition build() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.condition_ = condition_; } } private void buildPartialOneofs( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result) { result.variantsCase_ = variantsCase_; result.variants_ = this.variants_; if (variantsCase_ == 2 && versionVariantsBuilder_ != null) { result.variants_ = versionVariantsBuilder_.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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance()) return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getVariantsCase()) { case VERSION_VARIANTS: { mergeVersionVariants(other.getVersionVariants()); break; } case VARIANTS_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 10: { condition_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getVersionVariantsFieldBuilder().getBuilder(), extensionRegistry); variantsCase_ = 2; 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 variantsCase_ = 0; private java.lang.Object variants_; public VariantsCase getVariantsCase() { return VariantsCase.forNumber(variantsCase_); } public Builder clearVariants() { variantsCase_ = 0; variants_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object condition_ = ""; /** * * *
       * The condition defines which subset of sessions are selected for
       * this experiment. If not specified, all sessions are eligible. E.g.
       * "query_input.language_code=en" See the [conditions
       * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       * 
* * string condition = 1; * * @return The condition. */ public java.lang.String getCondition() { java.lang.Object ref = condition_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); condition_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The condition defines which subset of sessions are selected for
       * this experiment. If not specified, all sessions are eligible. E.g.
       * "query_input.language_code=en" See the [conditions
       * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       * 
* * string condition = 1; * * @return The bytes for condition. */ public com.google.protobuf.ByteString getConditionBytes() { java.lang.Object ref = condition_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); condition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The condition defines which subset of sessions are selected for
       * this experiment. If not specified, all sessions are eligible. E.g.
       * "query_input.language_code=en" See the [conditions
       * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       * 
* * string condition = 1; * * @param value The condition to set. * @return This builder for chaining. */ public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } condition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The condition defines which subset of sessions are selected for
       * this experiment. If not specified, all sessions are eligible. E.g.
       * "query_input.language_code=en" See the [conditions
       * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       * 
* * string condition = 1; * * @return This builder for chaining. */ public Builder clearCondition() { condition_ = getDefaultInstance().getCondition(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The condition defines which subset of sessions are selected for
       * this experiment. If not specified, all sessions are eligible. E.g.
       * "query_input.language_code=en" See the [conditions
       * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       * 
* * string condition = 1; * * @param value The bytes for condition to set. * @return This builder for chaining. */ public Builder setConditionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); condition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VersionVariants, com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Builder, com.google.cloud.dialogflow.cx.v3beta1.VersionVariantsOrBuilder> versionVariantsBuilder_; /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; * * @return Whether the versionVariants field is set. */ @java.lang.Override public boolean hasVersionVariants() { return variantsCase_ == 2; } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; * * @return The versionVariants. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants getVersionVariants() { if (versionVariantsBuilder_ == null) { if (variantsCase_ == 2) { return (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_; } return com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.getDefaultInstance(); } else { if (variantsCase_ == 2) { return versionVariantsBuilder_.getMessage(); } return com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.getDefaultInstance(); } } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ public Builder setVersionVariants( com.google.cloud.dialogflow.cx.v3beta1.VersionVariants value) { if (versionVariantsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } variants_ = value; onChanged(); } else { versionVariantsBuilder_.setMessage(value); } variantsCase_ = 2; return this; } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ public Builder setVersionVariants( com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Builder builderForValue) { if (versionVariantsBuilder_ == null) { variants_ = builderForValue.build(); onChanged(); } else { versionVariantsBuilder_.setMessage(builderForValue.build()); } variantsCase_ = 2; return this; } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ public Builder mergeVersionVariants( com.google.cloud.dialogflow.cx.v3beta1.VersionVariants value) { if (versionVariantsBuilder_ == null) { if (variantsCase_ == 2 && variants_ != com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.getDefaultInstance()) { variants_ = com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.newBuilder( (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_) .mergeFrom(value) .buildPartial(); } else { variants_ = value; } onChanged(); } else { if (variantsCase_ == 2) { versionVariantsBuilder_.mergeFrom(value); } else { versionVariantsBuilder_.setMessage(value); } } variantsCase_ = 2; return this; } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ public Builder clearVersionVariants() { if (versionVariantsBuilder_ == null) { if (variantsCase_ == 2) { variantsCase_ = 0; variants_ = null; onChanged(); } } else { if (variantsCase_ == 2) { variantsCase_ = 0; variants_ = null; } versionVariantsBuilder_.clear(); } return this; } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Builder getVersionVariantsBuilder() { return getVersionVariantsFieldBuilder().getBuilder(); } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VersionVariantsOrBuilder getVersionVariantsOrBuilder() { if ((variantsCase_ == 2) && (versionVariantsBuilder_ != null)) { return versionVariantsBuilder_.getMessageOrBuilder(); } else { if (variantsCase_ == 2) { return (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_; } return com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.getDefaultInstance(); } } /** * * *
       * The flow versions as the variants of this experiment.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VersionVariants, com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Builder, com.google.cloud.dialogflow.cx.v3beta1.VersionVariantsOrBuilder> getVersionVariantsFieldBuilder() { if (versionVariantsBuilder_ == null) { if (!(variantsCase_ == 2)) { variants_ = com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.getDefaultInstance(); } versionVariantsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VersionVariants, com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Builder, com.google.cloud.dialogflow.cx.v3beta1.VersionVariantsOrBuilder>( (com.google.cloud.dialogflow.cx.v3beta1.VersionVariants) variants_, getParentForChildren(), isClean()); variants_ = null; } variantsCase_ = 2; onChanged(); return versionVariantsBuilder_; } @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:google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) private static final com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Definition 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Experiment.Result) com.google.protobuf.MessageOrBuilder { /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ java.util.List getVersionMetricsList(); /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics getVersionMetrics( int index); /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ int getVersionMetricsCount(); /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder> getVersionMetricsOrBuilderList(); /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder getVersionMetricsOrBuilder(int index); /** * * *
     * The last time the experiment's stats data was updated. Will have default
     * value if stats have never been computed for this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 2; * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** * * *
     * The last time the experiment's stats data was updated. Will have default
     * value if stats have never been computed for this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 2; * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** * * *
     * The last time the experiment's stats data was updated. Will have default
     * value if stats have never been computed for this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 2; */ com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); } /** * * *
   * The inference result which includes an objective metric to optimize and the
   * confidence interval.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result} */ public static final class Result extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result) ResultOrBuilder { private static final long serialVersionUID = 0L; // Use Result.newBuilder() to construct. private Result(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Result() { versionMetrics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Result(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder.class); } /** * * *
     * Types of ratio-based metric for Dialogflow experiment.
     * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType} */ public enum MetricType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Metric unspecified.
       * 
* * METRIC_UNSPECIFIED = 0; */ METRIC_UNSPECIFIED(0), /** * * *
       * Percentage of contained sessions without user calling back in 24 hours.
       * 
* * CONTAINED_SESSION_NO_CALLBACK_RATE = 1; */ CONTAINED_SESSION_NO_CALLBACK_RATE(1), /** * * *
       * Percentage of sessions that were handed to a human agent.
       * 
* * LIVE_AGENT_HANDOFF_RATE = 2; */ LIVE_AGENT_HANDOFF_RATE(2), /** * * *
       * Percentage of sessions with the same user calling back.
       * 
* * CALLBACK_SESSION_RATE = 3; */ CALLBACK_SESSION_RATE(3), /** * * *
       * Percentage of sessions where user hung up.
       * 
* * ABANDONED_SESSION_RATE = 4; */ ABANDONED_SESSION_RATE(4), /** * * *
       * Percentage of sessions reached Dialogflow 'END_PAGE' or
       * 'END_SESSION'.
       * 
* * SESSION_END_RATE = 5; */ SESSION_END_RATE(5), UNRECOGNIZED(-1), ; /** * * *
       * Metric unspecified.
       * 
* * METRIC_UNSPECIFIED = 0; */ public static final int METRIC_UNSPECIFIED_VALUE = 0; /** * * *
       * Percentage of contained sessions without user calling back in 24 hours.
       * 
* * CONTAINED_SESSION_NO_CALLBACK_RATE = 1; */ public static final int CONTAINED_SESSION_NO_CALLBACK_RATE_VALUE = 1; /** * * *
       * Percentage of sessions that were handed to a human agent.
       * 
* * LIVE_AGENT_HANDOFF_RATE = 2; */ public static final int LIVE_AGENT_HANDOFF_RATE_VALUE = 2; /** * * *
       * Percentage of sessions with the same user calling back.
       * 
* * CALLBACK_SESSION_RATE = 3; */ public static final int CALLBACK_SESSION_RATE_VALUE = 3; /** * * *
       * Percentage of sessions where user hung up.
       * 
* * ABANDONED_SESSION_RATE = 4; */ public static final int ABANDONED_SESSION_RATE_VALUE = 4; /** * * *
       * Percentage of sessions reached Dialogflow 'END_PAGE' or
       * 'END_SESSION'.
       * 
* * SESSION_END_RATE = 5; */ public static final int SESSION_END_RATE_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 MetricType 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 MetricType forNumber(int value) { switch (value) { case 0: return METRIC_UNSPECIFIED; case 1: return CONTAINED_SESSION_NO_CALLBACK_RATE; case 2: return LIVE_AGENT_HANDOFF_RATE; case 3: return CALLBACK_SESSION_RATE; case 4: return ABANDONED_SESSION_RATE; case 5: return SESSION_END_RATE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MetricType findValueByNumber(int number) { return MetricType.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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDescriptor() .getEnumTypes() .get(0); } private static final MetricType[] VALUES = values(); public static MetricType 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 MetricType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType) } /** * * *
     * types of count-based metric for Dialogflow experiment.
     * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType} */ public enum CountType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Count type unspecified.
       * 
* * COUNT_TYPE_UNSPECIFIED = 0; */ COUNT_TYPE_UNSPECIFIED(0), /** * * *
       * Total number of occurrences of a 'NO_MATCH'.
       * 
* * TOTAL_NO_MATCH_COUNT = 1; */ TOTAL_NO_MATCH_COUNT(1), /** * * *
       * Total number of turn counts.
       * 
* * TOTAL_TURN_COUNT = 2; */ TOTAL_TURN_COUNT(2), /** * * *
       * Average turn count in a session.
       * 
* * AVERAGE_TURN_COUNT = 3; */ AVERAGE_TURN_COUNT(3), UNRECOGNIZED(-1), ; /** * * *
       * Count type unspecified.
       * 
* * COUNT_TYPE_UNSPECIFIED = 0; */ public static final int COUNT_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
       * Total number of occurrences of a 'NO_MATCH'.
       * 
* * TOTAL_NO_MATCH_COUNT = 1; */ public static final int TOTAL_NO_MATCH_COUNT_VALUE = 1; /** * * *
       * Total number of turn counts.
       * 
* * TOTAL_TURN_COUNT = 2; */ public static final int TOTAL_TURN_COUNT_VALUE = 2; /** * * *
       * Average turn count in a session.
       * 
* * AVERAGE_TURN_COUNT = 3; */ public static final int AVERAGE_TURN_COUNT_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 CountType 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 CountType forNumber(int value) { switch (value) { case 0: return COUNT_TYPE_UNSPECIFIED; case 1: return TOTAL_NO_MATCH_COUNT; case 2: return TOTAL_TURN_COUNT; case 3: return AVERAGE_TURN_COUNT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CountType findValueByNumber(int number) { return CountType.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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDescriptor() .getEnumTypes() .get(1); } private static final CountType[] VALUES = values(); public static CountType 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 CountType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType) } public interface ConfidenceIntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) com.google.protobuf.MessageOrBuilder { /** * * *
       * The confidence level used to construct the interval, i.e. there is X%
       * chance that the true value is within this interval.
       * 
* * double confidence_level = 1; * * @return The confidenceLevel. */ double getConfidenceLevel(); /** * * *
       * The percent change between an experiment metric's value and the value
       * for its control.
       * 
* * double ratio = 2; * * @return The ratio. */ double getRatio(); /** * * *
       * Lower bound of the interval.
       * 
* * double lower_bound = 3; * * @return The lowerBound. */ double getLowerBound(); /** * * *
       * Upper bound of the interval.
       * 
* * double upper_bound = 4; * * @return The upperBound. */ double getUpperBound(); } /** * * *
     * A confidence interval is a range of possible values for the experiment
     * objective you are trying to measure.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} */ public static final class ConfidenceInterval extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) ConfidenceIntervalOrBuilder { private static final long serialVersionUID = 0L; // Use ConfidenceInterval.newBuilder() to construct. private ConfidenceInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfidenceInterval() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceInterval(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_ConfidenceInterval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_ConfidenceInterval_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.Builder .class); } public static final int CONFIDENCE_LEVEL_FIELD_NUMBER = 1; private double confidenceLevel_ = 0D; /** * * *
       * The confidence level used to construct the interval, i.e. there is X%
       * chance that the true value is within this interval.
       * 
* * double confidence_level = 1; * * @return The confidenceLevel. */ @java.lang.Override public double getConfidenceLevel() { return confidenceLevel_; } public static final int RATIO_FIELD_NUMBER = 2; private double ratio_ = 0D; /** * * *
       * The percent change between an experiment metric's value and the value
       * for its control.
       * 
* * double ratio = 2; * * @return The ratio. */ @java.lang.Override public double getRatio() { return ratio_; } public static final int LOWER_BOUND_FIELD_NUMBER = 3; private double lowerBound_ = 0D; /** * * *
       * Lower bound of the interval.
       * 
* * double lower_bound = 3; * * @return The lowerBound. */ @java.lang.Override public double getLowerBound() { return lowerBound_; } public static final int UPPER_BOUND_FIELD_NUMBER = 4; private double upperBound_ = 0D; /** * * *
       * Upper bound of the interval.
       * 
* * double upper_bound = 4; * * @return The upperBound. */ @java.lang.Override public double getUpperBound() { return upperBound_; } 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 (java.lang.Double.doubleToRawLongBits(confidenceLevel_) != 0) { output.writeDouble(1, confidenceLevel_); } if (java.lang.Double.doubleToRawLongBits(ratio_) != 0) { output.writeDouble(2, ratio_); } if (java.lang.Double.doubleToRawLongBits(lowerBound_) != 0) { output.writeDouble(3, lowerBound_); } if (java.lang.Double.doubleToRawLongBits(upperBound_) != 0) { output.writeDouble(4, upperBound_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(confidenceLevel_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, confidenceLevel_); } if (java.lang.Double.doubleToRawLongBits(ratio_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, ratio_); } if (java.lang.Double.doubleToRawLongBits(lowerBound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, lowerBound_); } if (java.lang.Double.doubleToRawLongBits(upperBound_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, upperBound_); } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval other = (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) obj; if (java.lang.Double.doubleToLongBits(getConfidenceLevel()) != java.lang.Double.doubleToLongBits(other.getConfidenceLevel())) return false; if (java.lang.Double.doubleToLongBits(getRatio()) != java.lang.Double.doubleToLongBits(other.getRatio())) return false; if (java.lang.Double.doubleToLongBits(getLowerBound()) != java.lang.Double.doubleToLongBits(other.getLowerBound())) return false; if (java.lang.Double.doubleToLongBits(getUpperBound()) != java.lang.Double.doubleToLongBits(other.getUpperBound())) 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) + CONFIDENCE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getConfidenceLevel())); hash = (37 * hash) + RATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRatio())); hash = (37 * hash) + LOWER_BOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLowerBound())); hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUpperBound())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval 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( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval 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; } /** * * *
       * A confidence interval is a range of possible values for the experiment
       * objective you are trying to measure.
       * 
* * Protobuf type {@code * google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceIntervalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_ConfidenceInterval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_ConfidenceInterval_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; confidenceLevel_ = 0D; ratio_ = 0D; lowerBound_ = 0D; upperBound_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_ConfidenceInterval_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval build() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.confidenceLevel_ = confidenceLevel_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.ratio_ = ratio_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.lowerBound_ = lowerBound_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.upperBound_ = upperBound_; } } @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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance()) return this; if (other.getConfidenceLevel() != 0D) { setConfidenceLevel(other.getConfidenceLevel()); } if (other.getRatio() != 0D) { setRatio(other.getRatio()); } if (other.getLowerBound() != 0D) { setLowerBound(other.getLowerBound()); } if (other.getUpperBound() != 0D) { setUpperBound(other.getUpperBound()); } 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 9: { confidenceLevel_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 17: { ratio_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 25: { lowerBound_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { upperBound_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 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 double confidenceLevel_; /** * * *
         * The confidence level used to construct the interval, i.e. there is X%
         * chance that the true value is within this interval.
         * 
* * double confidence_level = 1; * * @return The confidenceLevel. */ @java.lang.Override public double getConfidenceLevel() { return confidenceLevel_; } /** * * *
         * The confidence level used to construct the interval, i.e. there is X%
         * chance that the true value is within this interval.
         * 
* * double confidence_level = 1; * * @param value The confidenceLevel to set. * @return This builder for chaining. */ public Builder setConfidenceLevel(double value) { confidenceLevel_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * The confidence level used to construct the interval, i.e. there is X%
         * chance that the true value is within this interval.
         * 
* * double confidence_level = 1; * * @return This builder for chaining. */ public Builder clearConfidenceLevel() { bitField0_ = (bitField0_ & ~0x00000001); confidenceLevel_ = 0D; onChanged(); return this; } private double ratio_; /** * * *
         * The percent change between an experiment metric's value and the value
         * for its control.
         * 
* * double ratio = 2; * * @return The ratio. */ @java.lang.Override public double getRatio() { return ratio_; } /** * * *
         * The percent change between an experiment metric's value and the value
         * for its control.
         * 
* * double ratio = 2; * * @param value The ratio to set. * @return This builder for chaining. */ public Builder setRatio(double value) { ratio_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * The percent change between an experiment metric's value and the value
         * for its control.
         * 
* * double ratio = 2; * * @return This builder for chaining. */ public Builder clearRatio() { bitField0_ = (bitField0_ & ~0x00000002); ratio_ = 0D; onChanged(); return this; } private double lowerBound_; /** * * *
         * Lower bound of the interval.
         * 
* * double lower_bound = 3; * * @return The lowerBound. */ @java.lang.Override public double getLowerBound() { return lowerBound_; } /** * * *
         * Lower bound of the interval.
         * 
* * double lower_bound = 3; * * @param value The lowerBound to set. * @return This builder for chaining. */ public Builder setLowerBound(double value) { lowerBound_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Lower bound of the interval.
         * 
* * double lower_bound = 3; * * @return This builder for chaining. */ public Builder clearLowerBound() { bitField0_ = (bitField0_ & ~0x00000004); lowerBound_ = 0D; onChanged(); return this; } private double upperBound_; /** * * *
         * Upper bound of the interval.
         * 
* * double upper_bound = 4; * * @return The upperBound. */ @java.lang.Override public double getUpperBound() { return upperBound_; } /** * * *
         * Upper bound of the interval.
         * 
* * double upper_bound = 4; * * @param value The upperBound to set. * @return This builder for chaining. */ public Builder setUpperBound(double value) { upperBound_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
         * Upper bound of the interval.
         * 
* * double upper_bound = 4; * * @return This builder for chaining. */ public Builder clearUpperBound() { bitField0_ = (bitField0_ & ~0x00000008); upperBound_ = 0D; 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:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) private static final com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result .ConfidenceInterval DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfidenceInterval 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetricOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) com.google.protobuf.MessageOrBuilder { /** * * *
       * Ratio-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * * *
       * Ratio-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return The type. */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType getType(); /** * * *
       * Count-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return The enum numeric value on the wire for countType. */ int getCountTypeValue(); /** * * *
       * Count-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return The countType. */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType getCountType(); /** * * *
       * Ratio value of a metric.
       * 
* * double ratio = 2; * * @return Whether the ratio field is set. */ boolean hasRatio(); /** * * *
       * Ratio value of a metric.
       * 
* * double ratio = 2; * * @return The ratio. */ double getRatio(); /** * * *
       * Count value of a metric.
       * 
* * double count = 4; * * @return Whether the count field is set. */ boolean hasCount(); /** * * *
       * Count value of a metric.
       * 
* * double count = 4; * * @return The count. */ double getCount(); /** * * *
       * The probability that the treatment is better than all other treatments
       * in the experiment
       * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * * * @return Whether the confidenceInterval field is set. */ boolean hasConfidenceInterval(); /** * * *
       * The probability that the treatment is better than all other treatments
       * in the experiment
       * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * * * @return The confidenceInterval. */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval getConfidenceInterval(); /** * * *
       * The probability that the treatment is better than all other treatments
       * in the experiment
       * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceIntervalOrBuilder getConfidenceIntervalOrBuilder(); com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.ValueCase getValueCase(); } /** * * *
     * Metric and corresponding confidence intervals.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} */ public static final class Metric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) MetricOrBuilder { private static final long serialVersionUID = 0L; // Use Metric.newBuilder() to construct. private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metric() { type_ = 0; countType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Metric(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder.class); } private int bitField0_; private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RATIO(2), COUNT(4), VALUE_NOT_SET(0); private final int value; private ValueCase(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 ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 2: return RATIO; case 4: return COUNT; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber(valueCase_); } public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * * *
       * Ratio-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
       * Ratio-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return The type. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType getType() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType result = com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.UNRECOGNIZED : result; } public static final int COUNT_TYPE_FIELD_NUMBER = 5; private int countType_ = 0; /** * * *
       * Count-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return The enum numeric value on the wire for countType. */ @java.lang.Override public int getCountTypeValue() { return countType_; } /** * * *
       * Count-based metric type. Only one of type or count_type is specified in
       * each Metric.
       * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return The countType. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType getCountType() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType result = com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.forNumber( countType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.UNRECOGNIZED : result; } public static final int RATIO_FIELD_NUMBER = 2; /** * * *
       * Ratio value of a metric.
       * 
* * double ratio = 2; * * @return Whether the ratio field is set. */ @java.lang.Override public boolean hasRatio() { return valueCase_ == 2; } /** * * *
       * Ratio value of a metric.
       * 
* * double ratio = 2; * * @return The ratio. */ @java.lang.Override public double getRatio() { if (valueCase_ == 2) { return (java.lang.Double) value_; } return 0D; } public static final int COUNT_FIELD_NUMBER = 4; /** * * *
       * Count value of a metric.
       * 
* * double count = 4; * * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return valueCase_ == 4; } /** * * *
       * Count value of a metric.
       * 
* * double count = 4; * * @return The count. */ @java.lang.Override public double getCount() { if (valueCase_ == 4) { return (java.lang.Double) value_; } return 0D; } public static final int CONFIDENCE_INTERVAL_FIELD_NUMBER = 3; private com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidenceInterval_; /** * * *
       * The probability that the treatment is better than all other treatments
       * in the experiment
       * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * * * @return Whether the confidenceInterval field is set. */ @java.lang.Override public boolean hasConfidenceInterval() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * The probability that the treatment is better than all other treatments
       * in the experiment
       * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * * * @return The confidenceInterval. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval getConfidenceInterval() { return confidenceInterval_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance() : confidenceInterval_; } /** * * *
       * The probability that the treatment is better than all other treatments
       * in the experiment
       * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceIntervalOrBuilder getConfidenceIntervalOrBuilder() { return confidenceInterval_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance() : confidenceInterval_; } 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 (type_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType .METRIC_UNSPECIFIED .getNumber()) { output.writeEnum(1, type_); } if (valueCase_ == 2) { output.writeDouble(2, (double) ((java.lang.Double) value_)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getConfidenceInterval()); } if (valueCase_ == 4) { output.writeDouble(4, (double) ((java.lang.Double) value_)); } if (countType_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType .COUNT_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(5, countType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType .METRIC_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize( 2, (double) ((java.lang.Double) value_)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfidenceInterval()); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize( 4, (double) ((java.lang.Double) value_)); } if (countType_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType .COUNT_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, countType_); } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric other = (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) obj; if (type_ != other.type_) return false; if (countType_ != other.countType_) return false; if (hasConfidenceInterval() != other.hasConfidenceInterval()) return false; if (hasConfidenceInterval()) { if (!getConfidenceInterval().equals(other.getConfidenceInterval())) return false; } if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 2: if (java.lang.Double.doubleToLongBits(getRatio()) != java.lang.Double.doubleToLongBits(other.getRatio())) return false; break; case 4: if (java.lang.Double.doubleToLongBits(getCount()) != java.lang.Double.doubleToLongBits(other.getCount())) 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(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + COUNT_TYPE_FIELD_NUMBER; hash = (53 * hash) + countType_; if (hasConfidenceInterval()) { hash = (37 * hash) + CONFIDENCE_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getConfidenceInterval().hashCode(); } switch (valueCase_) { case 2: hash = (37 * hash) + RATIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRatio())); break; case 4: hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCount())); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric 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( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric 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; } /** * * *
       * Metric and corresponding confidence intervals.
       * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfidenceIntervalFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; countType_ = 0; confidenceInterval_ = null; if (confidenceIntervalBuilder_ != null) { confidenceIntervalBuilder_.dispose(); confidenceIntervalBuilder_ = null; } valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_Metric_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric build() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.countType_ = countType_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.confidenceInterval_ = confidenceIntervalBuilder_ == null ? confidenceInterval_ : confidenceIntervalBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result) { result.valueCase_ = valueCase_; result.value_ = this.value_; } @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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric .getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.countType_ != 0) { setCountTypeValue(other.getCountTypeValue()); } if (other.hasConfidenceInterval()) { mergeConfidenceInterval(other.getConfidenceInterval()); } switch (other.getValueCase()) { case RATIO: { setRatio(other.getRatio()); break; } case COUNT: { setCount(other.getCount()); break; } case VALUE_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.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 17: { value_ = input.readDouble(); valueCase_ = 2; break; } // case 17 case 26: { input.readMessage( getConfidenceIntervalFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 26 case 33: { value_ = input.readDouble(); valueCase_ = 4; break; } // case 33 case 40: { countType_ = input.readEnum(); bitField0_ |= 0x00000002; 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 valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber(valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private int type_ = 0; /** * * *
         * Ratio-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
         * Ratio-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @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_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Ratio-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return The type. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType getType() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType result = com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.UNRECOGNIZED : result; } /** * * *
         * Ratio-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * * *
         * Ratio-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType type = 1; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private int countType_ = 0; /** * * *
         * Count-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return The enum numeric value on the wire for countType. */ @java.lang.Override public int getCountTypeValue() { return countType_; } /** * * *
         * Count-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @param value The enum numeric value on the wire for countType to set. * @return This builder for chaining. */ public Builder setCountTypeValue(int value) { countType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Count-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return The countType. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType getCountType() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType result = com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.forNumber( countType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.UNRECOGNIZED : result; } /** * * *
         * Count-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @param value The countType to set. * @return This builder for chaining. */ public Builder setCountType( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; countType_ = value.getNumber(); onChanged(); return this; } /** * * *
         * Count-based metric type. Only one of type or count_type is specified in
         * each Metric.
         * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType count_type = 5; * * * @return This builder for chaining. */ public Builder clearCountType() { bitField0_ = (bitField0_ & ~0x00000002); countType_ = 0; onChanged(); return this; } /** * * *
         * Ratio value of a metric.
         * 
* * double ratio = 2; * * @return Whether the ratio field is set. */ public boolean hasRatio() { return valueCase_ == 2; } /** * * *
         * Ratio value of a metric.
         * 
* * double ratio = 2; * * @return The ratio. */ public double getRatio() { if (valueCase_ == 2) { return (java.lang.Double) value_; } return 0D; } /** * * *
         * Ratio value of a metric.
         * 
* * double ratio = 2; * * @param value The ratio to set. * @return This builder for chaining. */ public Builder setRatio(double value) { valueCase_ = 2; value_ = value; onChanged(); return this; } /** * * *
         * Ratio value of a metric.
         * 
* * double ratio = 2; * * @return This builder for chaining. */ public Builder clearRatio() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** * * *
         * Count value of a metric.
         * 
* * double count = 4; * * @return Whether the count field is set. */ public boolean hasCount() { return valueCase_ == 4; } /** * * *
         * Count value of a metric.
         * 
* * double count = 4; * * @return The count. */ public double getCount() { if (valueCase_ == 4) { return (java.lang.Double) value_; } return 0D; } /** * * *
         * Count value of a metric.
         * 
* * double count = 4; * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(double value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** * * *
         * Count value of a metric.
         * 
* * double count = 4; * * @return This builder for chaining. */ public Builder clearCount() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidenceInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result .ConfidenceIntervalOrBuilder> confidenceIntervalBuilder_; /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * * * @return Whether the confidenceInterval field is set. */ public boolean hasConfidenceInterval() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * * * @return The confidenceInterval. */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval getConfidenceInterval() { if (confidenceIntervalBuilder_ == null) { return confidenceInterval_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance() : confidenceInterval_; } else { return confidenceIntervalBuilder_.getMessage(); } } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ public Builder setConfidenceInterval( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval value) { if (confidenceIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } confidenceInterval_ = value; } else { confidenceIntervalBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ public Builder setConfidenceInterval( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.Builder builderForValue) { if (confidenceIntervalBuilder_ == null) { confidenceInterval_ = builderForValue.build(); } else { confidenceIntervalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ public Builder mergeConfidenceInterval( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval value) { if (confidenceIntervalBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && confidenceInterval_ != null && confidenceInterval_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance()) { getConfidenceIntervalBuilder().mergeFrom(value); } else { confidenceInterval_ = value; } } else { confidenceIntervalBuilder_.mergeFrom(value); } if (confidenceInterval_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ public Builder clearConfidenceInterval() { bitField0_ = (bitField0_ & ~0x00000010); confidenceInterval_ = null; if (confidenceIntervalBuilder_ != null) { confidenceIntervalBuilder_.dispose(); confidenceIntervalBuilder_ = null; } onChanged(); return this; } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.Builder getConfidenceIntervalBuilder() { bitField0_ |= 0x00000010; onChanged(); return getConfidenceIntervalFieldBuilder().getBuilder(); } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceIntervalOrBuilder getConfidenceIntervalOrBuilder() { if (confidenceIntervalBuilder_ != null) { return confidenceIntervalBuilder_.getMessageOrBuilder(); } else { return confidenceInterval_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .getDefaultInstance() : confidenceInterval_; } } /** * * *
         * The probability that the treatment is better than all other treatments
         * in the experiment
         * 
* * * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval confidence_interval = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result .ConfidenceIntervalOrBuilder> getConfidenceIntervalFieldBuilder() { if (confidenceIntervalBuilder_ == null) { confidenceIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval .Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result .ConfidenceIntervalOrBuilder>( getConfidenceInterval(), getParentForChildren(), isClean()); confidenceInterval_ = null; } return confidenceIntervalBuilder_; } @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:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) private static final com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Metric 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VersionMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) com.google.protobuf.MessageOrBuilder { /** * * *
       * The name of the flow
       * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return The version. */ java.lang.String getVersion(); /** * * *
       * The name of the flow
       * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ java.util.List getMetricsList(); /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getMetrics(int index); /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ int getMetricsCount(); /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder> getMetricsOrBuilderList(); /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder getMetricsOrBuilder( int index); /** * * *
       * Number of sessions that were allocated to this version.
       * 
* * int32 session_count = 3; * * @return The sessionCount. */ int getSessionCount(); } /** * * *
     * Version variant and associated metrics.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} */ public static final class VersionMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) VersionMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use VersionMetrics.newBuilder() to construct. private VersionMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VersionMetrics() { version_ = ""; metrics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VersionMetrics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_VersionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_VersionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder .class); } public static final int VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * * *
       * The name of the flow
       * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** * * *
       * The name of the flow
       * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
       * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METRICS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List metrics_; /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ @java.lang.Override public java.util.List getMetricsList() { return metrics_; } /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder> getMetricsOrBuilderList() { return metrics_; } /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ @java.lang.Override public int getMetricsCount() { return metrics_.size(); } /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getMetrics(int index) { return metrics_.get(index); } /** * * *
       * The metrics and corresponding confidence intervals in the inference
       * result.
       * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder getMetricsOrBuilder(int index) { return metrics_.get(index); } public static final int SESSION_COUNT_FIELD_NUMBER = 3; private int sessionCount_ = 0; /** * * *
       * Number of sessions that were allocated to this version.
       * 
* * int32 session_count = 3; * * @return The sessionCount. */ @java.lang.Override public int getSessionCount() { return sessionCount_; } 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(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(2, metrics_.get(i)); } if (sessionCount_ != 0) { output.writeInt32(3, sessionCount_); } 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(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } for (int i = 0; i < metrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metrics_.get(i)); } if (sessionCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, sessionCount_); } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics other = (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) obj; if (!getVersion().equals(other.getVersion())) return false; if (!getMetricsList().equals(other.getMetricsList())) return false; if (getSessionCount() != other.getSessionCount()) 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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (getMetricsCount() > 0) { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetricsList().hashCode(); } hash = (37 * hash) + SESSION_COUNT_FIELD_NUMBER; hash = (53 * hash) + getSessionCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics 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( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics 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; } /** * * *
       * Version variant and associated metrics.
       * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_VersionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_VersionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder .class); } // Construct using // com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = ""; if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); } else { metrics_ = null; metricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); sessionCount_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_VersionMetrics_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics build() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result) { if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); bitField0_ = (bitField0_ & ~0x00000002); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } } private void buildPartial0( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sessionCount_ = sessionCount_; } } @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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000001; onChanged(); } if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); } onChanged(); } } else { if (!other.metrics_.isEmpty()) { if (metricsBuilder_.isEmpty()) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000002); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } } } if (other.getSessionCount() != 0) { setSessionCount(other.getSessionCount()); } 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: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric .parser(), extensionRegistry); if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(m); } else { metricsBuilder_.addMessage(m); } break; } // case 18 case 24: { sessionCount_ = input.readInt32(); 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.lang.Object version_ = ""; /** * * *
         * The name of the flow
         * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
         * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
         * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * The name of the flow
         * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
         * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
         * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * The name of the flow
         * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
         * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
         * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * The name of the flow
         * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
         * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
         * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
         * The name of the flow
         * [Version][google.cloud.dialogflow.cx.v3beta1.Version]. Format:
         * `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
         * 
* * string version = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { metrics_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric>(metrics_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder> metricsBuilder_; /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public java.util.List getMetricsList() { if (metricsBuilder_ == null) { return java.util.Collections.unmodifiableList(metrics_); } else { return metricsBuilder_.getMessageList(); } } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public int getMetricsCount() { if (metricsBuilder_ == null) { return metrics_.size(); } else { return metricsBuilder_.getCount(); } } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getMetrics( int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessage(index); } } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder setMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); } else { metricsBuilder_.setMessage(index, value); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder setMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder addMetrics( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(value); onChanged(); } else { metricsBuilder_.addMessage(value); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder addMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(index, value); onChanged(); } else { metricsBuilder_.addMessage(index, value); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder addMetrics( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder addMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder addAllMetrics( java.lang.Iterable< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric> values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { metricsBuilder_.clear(); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public Builder removeMetrics(int index) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.remove(index); onChanged(); } else { metricsBuilder_.remove(index); } return this; } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder getMetricsBuilder(int index) { return getMetricsFieldBuilder().getBuilder(index); } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder getMetricsOrBuilder(int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder> getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metrics_); } } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder addMetricsBuilder() { return getMetricsFieldBuilder() .addBuilder( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric .getDefaultInstance()); } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder addMetricsBuilder(int index) { return getMetricsFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric .getDefaultInstance()); } /** * * *
         * The metrics and corresponding confidence intervals in the inference
         * result.
         * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric metrics = 2; * */ public java.util.List< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder> getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder>( metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } private int sessionCount_; /** * * *
         * Number of sessions that were allocated to this version.
         * 
* * int32 session_count = 3; * * @return The sessionCount. */ @java.lang.Override public int getSessionCount() { return sessionCount_; } /** * * *
         * Number of sessions that were allocated to this version.
         * 
* * int32 session_count = 3; * * @param value The sessionCount to set. * @return This builder for chaining. */ public Builder setSessionCount(int value) { sessionCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Number of sessions that were allocated to this version.
         * 
* * int32 session_count = 3; * * @return This builder for chaining. */ public Builder clearSessionCount() { bitField0_ = (bitField0_ & ~0x00000004); sessionCount_ = 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:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) private static final com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VersionMetrics 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int VERSION_METRICS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List versionMetrics_; /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ @java.lang.Override public java.util.List getVersionMetricsList() { return versionMetrics_; } /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder> getVersionMetricsOrBuilderList() { return versionMetrics_; } /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ @java.lang.Override public int getVersionMetricsCount() { return versionMetrics_.size(); } /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics getVersionMetrics(int index) { return versionMetrics_.get(index); } /** * * *
     * Version variants and metrics.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder getVersionMetricsOrBuilder(int index) { return versionMetrics_.get(index); } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp lastUpdateTime_; /** * * *
     * The last time the experiment's stats data was updated. Will have default
     * value if stats have never been computed for this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 2; * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The last time the experiment's stats data was updated. Will have default
     * value if stats have never been computed for this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 2; * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } /** * * *
     * The last time the experiment's stats data was updated. Will have default
     * value if stats have never been computed for this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } 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 < versionMetrics_.size(); i++) { output.writeMessage(1, versionMetrics_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getLastUpdateTime()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < versionMetrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, versionMetrics_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime()); } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result other = (com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) obj; if (!getVersionMetricsList().equals(other.getVersionMetricsList())) return false; if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { if (!getLastUpdateTime().equals(other.getLastUpdateTime())) 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 (getVersionMetricsCount() > 0) { hash = (37 * hash) + VERSION_METRICS_FIELD_NUMBER; hash = (53 * hash) + getVersionMetricsList().hashCode(); } if (hasLastUpdateTime()) { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result 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( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result 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; } /** * * *
     * The inference result which includes an objective metric to optimize and the
     * confidence interval.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment.Result} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Experiment.Result) com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVersionMetricsFieldBuilder(); getLastUpdateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (versionMetricsBuilder_ == null) { versionMetrics_ = java.util.Collections.emptyList(); } else { versionMetrics_ = null; versionMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); lastUpdateTime_ = null; if (lastUpdateTimeBuilder_ != null) { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_Result_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result build() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result) { if (versionMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { versionMetrics_ = java.util.Collections.unmodifiableList(versionMetrics_); bitField0_ = (bitField0_ & ~0x00000001); } result.versionMetrics_ = versionMetrics_; } else { result.versionMetrics_ = versionMetricsBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance()) return this; if (versionMetricsBuilder_ == null) { if (!other.versionMetrics_.isEmpty()) { if (versionMetrics_.isEmpty()) { versionMetrics_ = other.versionMetrics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVersionMetricsIsMutable(); versionMetrics_.addAll(other.versionMetrics_); } onChanged(); } } else { if (!other.versionMetrics_.isEmpty()) { if (versionMetricsBuilder_.isEmpty()) { versionMetricsBuilder_.dispose(); versionMetricsBuilder_ = null; versionMetrics_ = other.versionMetrics_; bitField0_ = (bitField0_ & ~0x00000001); versionMetricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionMetricsFieldBuilder() : null; } else { versionMetricsBuilder_.addAllMessages(other.versionMetrics_); } } } if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } 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.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics .parser(), extensionRegistry); if (versionMetricsBuilder_ == null) { ensureVersionMetricsIsMutable(); versionMetrics_.add(m); } else { versionMetricsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getLastUpdateTimeFieldBuilder().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< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics> versionMetrics_ = java.util.Collections.emptyList(); private void ensureVersionMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { versionMetrics_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics>( versionMetrics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder> versionMetricsBuilder_; /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public java.util.List getVersionMetricsList() { if (versionMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(versionMetrics_); } else { return versionMetricsBuilder_.getMessageList(); } } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public int getVersionMetricsCount() { if (versionMetricsBuilder_ == null) { return versionMetrics_.size(); } else { return versionMetricsBuilder_.getCount(); } } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics getVersionMetrics(int index) { if (versionMetricsBuilder_ == null) { return versionMetrics_.get(index); } else { return versionMetricsBuilder_.getMessage(index); } } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder setVersionMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics value) { if (versionMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionMetricsIsMutable(); versionMetrics_.set(index, value); onChanged(); } else { versionMetricsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder setVersionMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder builderForValue) { if (versionMetricsBuilder_ == null) { ensureVersionMetricsIsMutable(); versionMetrics_.set(index, builderForValue.build()); onChanged(); } else { versionMetricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder addVersionMetrics( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics value) { if (versionMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionMetricsIsMutable(); versionMetrics_.add(value); onChanged(); } else { versionMetricsBuilder_.addMessage(value); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder addVersionMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics value) { if (versionMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionMetricsIsMutable(); versionMetrics_.add(index, value); onChanged(); } else { versionMetricsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder addVersionMetrics( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder builderForValue) { if (versionMetricsBuilder_ == null) { ensureVersionMetricsIsMutable(); versionMetrics_.add(builderForValue.build()); onChanged(); } else { versionMetricsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder addVersionMetrics( int index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder builderForValue) { if (versionMetricsBuilder_ == null) { ensureVersionMetricsIsMutable(); versionMetrics_.add(index, builderForValue.build()); onChanged(); } else { versionMetricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder addAllVersionMetrics( java.lang.Iterable< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics> values) { if (versionMetricsBuilder_ == null) { ensureVersionMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionMetrics_); onChanged(); } else { versionMetricsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder clearVersionMetrics() { if (versionMetricsBuilder_ == null) { versionMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { versionMetricsBuilder_.clear(); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public Builder removeVersionMetrics(int index) { if (versionMetricsBuilder_ == null) { ensureVersionMetricsIsMutable(); versionMetrics_.remove(index); onChanged(); } else { versionMetricsBuilder_.remove(index); } return this; } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder getVersionMetricsBuilder(int index) { return getVersionMetricsFieldBuilder().getBuilder(index); } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder getVersionMetricsOrBuilder(int index) { if (versionMetricsBuilder_ == null) { return versionMetrics_.get(index); } else { return versionMetricsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder> getVersionMetricsOrBuilderList() { if (versionMetricsBuilder_ != null) { return versionMetricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(versionMetrics_); } } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder addVersionMetricsBuilder() { return getVersionMetricsFieldBuilder() .addBuilder( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics .getDefaultInstance()); } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder addVersionMetricsBuilder(int index) { return getVersionMetricsFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics .getDefaultInstance()); } /** * * *
       * Version variants and metrics.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics version_metrics = 1; * */ public java.util.List< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder> getVersionMetricsBuilderList() { return getVersionMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder> getVersionMetricsFieldBuilder() { if (versionMetricsBuilder_ == null) { versionMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetricsOrBuilder>( versionMetrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); versionMetrics_ = null; } return versionMetricsBuilder_; } private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdateTime_ = value; } else { lastUpdateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && lastUpdateTime_ != null && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } } else { lastUpdateTimeBuilder_.mergeFrom(value); } if (lastUpdateTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ public Builder clearLastUpdateTime() { bitField0_ = (bitField0_ & ~0x00000002); lastUpdateTime_ = null; if (lastUpdateTimeBuilder_ != null) { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } } /** * * *
       * The last time the experiment's stats data was updated. Will have default
       * value if stats have never been computed for this experiment.
       * 
* * .google.protobuf.Timestamp last_update_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } @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:google.cloud.dialogflow.cx.v3beta1.Experiment.Result) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Experiment.Result) private static final com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Result 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The name of the experiment.
   * Format:
   * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
   * 
* * 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; } } /** * * *
   * The name of the experiment.
   * Format:
   * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
   * 
* * 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 DISPLAY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
   * Required. The human-readable name of the experiment (unique in an
   * environment). Limit of 64 characters.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
   * Required. The human-readable name of the experiment (unique in an
   * environment). Limit of 64 characters.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * The human-readable description of the experiment.
   * 
* * string description = 3; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * * *
   * The human-readable description of the experiment.
   * 
* * string description = 3; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; /** * * *
   * The current state of the experiment.
   * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
   * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
   * RUNNING->DONE.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * The current state of the experiment.
   * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
   * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
   * RUNNING->DONE.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @return The state. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.State getState() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.State result = com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.UNRECOGNIZED : result; } public static final int DEFINITION_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition_; /** * * *
   * The definition of the experiment.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; * * @return Whether the definition field is set. */ @java.lang.Override public boolean hasDefinition() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The definition of the experiment.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; * * @return The definition. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition getDefinition() { return definition_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance() : definition_; } /** * * *
   * The definition of the experiment.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder getDefinitionOrBuilder() { return definition_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance() : definition_; } public static final int ROLLOUT_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rolloutConfig_; /** * * *
   * The configuration for auto rollout. If set, there should be exactly two
   * variants in the experiment (control variant being the default version of
   * the flow), the traffic allocation for the non-control variant will
   * gradually increase to 100% when conditions are met, and eventually
   * replace the control variant to become the default version of the flow.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; * * @return Whether the rolloutConfig field is set. */ @java.lang.Override public boolean hasRolloutConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The configuration for auto rollout. If set, there should be exactly two
   * variants in the experiment (control variant being the default version of
   * the flow), the traffic allocation for the non-control variant will
   * gradually increase to 100% when conditions are met, and eventually
   * replace the control variant to become the default version of the flow.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; * * @return The rolloutConfig. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig getRolloutConfig() { return rolloutConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance() : rolloutConfig_; } /** * * *
   * The configuration for auto rollout. If set, there should be exactly two
   * variants in the experiment (control variant being the default version of
   * the flow), the traffic allocation for the non-control variant will
   * gradually increase to 100% when conditions are met, and eventually
   * replace the control variant to become the default version of the flow.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfigOrBuilder getRolloutConfigOrBuilder() { return rolloutConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance() : rolloutConfig_; } public static final int ROLLOUT_STATE_FIELD_NUMBER = 15; private com.google.cloud.dialogflow.cx.v3beta1.RolloutState rolloutState_; /** * * *
   * State of the auto rollout process.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; * * @return Whether the rolloutState field is set. */ @java.lang.Override public boolean hasRolloutState() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * State of the auto rollout process.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; * * @return The rolloutState. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RolloutState getRolloutState() { return rolloutState_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance() : rolloutState_; } /** * * *
   * State of the auto rollout process.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RolloutStateOrBuilder getRolloutStateOrBuilder() { return rolloutState_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance() : rolloutState_; } public static final int ROLLOUT_FAILURE_REASON_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object rolloutFailureReason_ = ""; /** * * *
   * The reason why rollout has failed. Should only be set when state is
   * ROLLOUT_FAILED.
   * 
* * string rollout_failure_reason = 16; * * @return The rolloutFailureReason. */ @java.lang.Override public java.lang.String getRolloutFailureReason() { java.lang.Object ref = rolloutFailureReason_; 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(); rolloutFailureReason_ = s; return s; } } /** * * *
   * The reason why rollout has failed. Should only be set when state is
   * ROLLOUT_FAILED.
   * 
* * string rollout_failure_reason = 16; * * @return The bytes for rolloutFailureReason. */ @java.lang.Override public com.google.protobuf.ByteString getRolloutFailureReasonBytes() { java.lang.Object ref = rolloutFailureReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rolloutFailureReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESULT_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result_; /** * * *
   * Inference result of the experiment.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; * * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Inference result of the experiment.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; * * @return The result. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getResult() { return result_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance() : result_; } /** * * *
   * Inference result of the experiment.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder getResultOrBuilder() { return result_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance() : result_; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Creation time of this experiment.
   * 
* * .google.protobuf.Timestamp create_time = 7; * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Creation time of this experiment.
   * 
* * .google.protobuf.Timestamp create_time = 7; * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Creation time of this experiment.
   * 
* * .google.protobuf.Timestamp create_time = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp startTime_; /** * * *
   * Start time of this experiment.
   * 
* * .google.protobuf.Timestamp start_time = 8; * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Start time of this experiment.
   * 
* * .google.protobuf.Timestamp start_time = 8; * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
   * Start time of this experiment.
   * 
* * .google.protobuf.Timestamp start_time = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp endTime_; /** * * *
   * End time of this experiment.
   * 
* * .google.protobuf.Timestamp end_time = 9; * * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * End time of this experiment.
   * 
* * .google.protobuf.Timestamp end_time = 9; * * @return The endTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** * * *
   * End time of this experiment.
   * 
* * .google.protobuf.Timestamp end_time = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp lastUpdateTime_; /** * * *
   * Last update time of this experiment.
   * 
* * .google.protobuf.Timestamp last_update_time = 10; * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * Last update time of this experiment.
   * 
* * .google.protobuf.Timestamp last_update_time = 10; * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } /** * * *
   * Last update time of this experiment.
   * 
* * .google.protobuf.Timestamp last_update_time = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } public static final int EXPERIMENT_LENGTH_FIELD_NUMBER = 11; private com.google.protobuf.Duration experimentLength_; /** * * *
   * Maximum number of days to run the experiment. If auto-rollout is
   * not enabled, default value and maximum will be 30 days. If auto-rollout is
   * enabled, default value and maximum will be 6 days.
   * 
* * .google.protobuf.Duration experiment_length = 11; * * @return Whether the experimentLength field is set. */ @java.lang.Override public boolean hasExperimentLength() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
   * Maximum number of days to run the experiment. If auto-rollout is
   * not enabled, default value and maximum will be 30 days. If auto-rollout is
   * enabled, default value and maximum will be 6 days.
   * 
* * .google.protobuf.Duration experiment_length = 11; * * @return The experimentLength. */ @java.lang.Override public com.google.protobuf.Duration getExperimentLength() { return experimentLength_ == null ? com.google.protobuf.Duration.getDefaultInstance() : experimentLength_; } /** * * *
   * Maximum number of days to run the experiment. If auto-rollout is
   * not enabled, default value and maximum will be 30 days. If auto-rollout is
   * enabled, default value and maximum will be 6 days.
   * 
* * .google.protobuf.Duration experiment_length = 11; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExperimentLengthOrBuilder() { return experimentLength_ == null ? com.google.protobuf.Duration.getDefaultInstance() : experimentLength_; } public static final int VARIANTS_HISTORY_FIELD_NUMBER = 12; @SuppressWarnings("serial") private java.util.List variantsHistory_; /** * * *
   * The history of updates to the experiment variants.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ @java.lang.Override public java.util.List getVariantsHistoryList() { return variantsHistory_; } /** * * *
   * The history of updates to the experiment variants.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ @java.lang.Override public java.util.List getVariantsHistoryOrBuilderList() { return variantsHistory_; } /** * * *
   * The history of updates to the experiment variants.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ @java.lang.Override public int getVariantsHistoryCount() { return variantsHistory_.size(); } /** * * *
   * The history of updates to the experiment variants.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory getVariantsHistory(int index) { return variantsHistory_.get(index); } /** * * *
   * The history of updates to the experiment variants.
   * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder getVariantsHistoryOrBuilder(int index) { return variantsHistory_.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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (state_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getDefinition()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getResult()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getCreateTime()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getStartTime()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(9, getEndTime()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(10, getLastUpdateTime()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(11, getExperimentLength()); } for (int i = 0; i < variantsHistory_.size(); i++) { output.writeMessage(12, variantsHistory_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(14, getRolloutConfig()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getRolloutState()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutFailureReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, rolloutFailureReason_); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (state_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDefinition()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getResult()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStartTime()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEndTime()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastUpdateTime()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExperimentLength()); } for (int i = 0; i < variantsHistory_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, variantsHistory_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRolloutConfig()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getRolloutState()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutFailureReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, rolloutFailureReason_); } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.Experiment other = (com.google.cloud.dialogflow.cx.v3beta1.Experiment) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (hasDefinition() != other.hasDefinition()) return false; if (hasDefinition()) { if (!getDefinition().equals(other.getDefinition())) return false; } if (hasRolloutConfig() != other.hasRolloutConfig()) return false; if (hasRolloutConfig()) { if (!getRolloutConfig().equals(other.getRolloutConfig())) return false; } if (hasRolloutState() != other.hasRolloutState()) return false; if (hasRolloutState()) { if (!getRolloutState().equals(other.getRolloutState())) return false; } if (!getRolloutFailureReason().equals(other.getRolloutFailureReason())) return false; if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (!getResult().equals(other.getResult())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } if (hasExperimentLength() != other.hasExperimentLength()) return false; if (hasExperimentLength()) { if (!getExperimentLength().equals(other.getExperimentLength())) return false; } if (!getVariantsHistoryList().equals(other.getVariantsHistoryList())) 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(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasDefinition()) { hash = (37 * hash) + DEFINITION_FIELD_NUMBER; hash = (53 * hash) + getDefinition().hashCode(); } if (hasRolloutConfig()) { hash = (37 * hash) + ROLLOUT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRolloutConfig().hashCode(); } if (hasRolloutState()) { hash = (37 * hash) + ROLLOUT_STATE_FIELD_NUMBER; hash = (53 * hash) + getRolloutState().hashCode(); } hash = (37 * hash) + ROLLOUT_FAILURE_REASON_FIELD_NUMBER; hash = (53 * hash) + getRolloutFailureReason().hashCode(); if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } if (hasLastUpdateTime()) { hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastUpdateTime().hashCode(); } if (hasExperimentLength()) { hash = (37 * hash) + EXPERIMENT_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getExperimentLength().hashCode(); } if (getVariantsHistoryCount() > 0) { hash = (37 * hash) + VARIANTS_HISTORY_FIELD_NUMBER; hash = (53 * hash) + getVariantsHistoryList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment 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(com.google.cloud.dialogflow.cx.v3beta1.Experiment 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; } /** * * *
   * Represents an experiment in an environment.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Experiment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Experiment) com.google.cloud.dialogflow.cx.v3beta1.ExperimentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.Experiment.class, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.Experiment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDefinitionFieldBuilder(); getRolloutConfigFieldBuilder(); getRolloutStateFieldBuilder(); getResultFieldBuilder(); getCreateTimeFieldBuilder(); getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); getLastUpdateTimeFieldBuilder(); getExperimentLengthFieldBuilder(); getVariantsHistoryFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; displayName_ = ""; description_ = ""; state_ = 0; definition_ = null; if (definitionBuilder_ != null) { definitionBuilder_.dispose(); definitionBuilder_ = null; } rolloutConfig_ = null; if (rolloutConfigBuilder_ != null) { rolloutConfigBuilder_.dispose(); rolloutConfigBuilder_ = null; } rolloutState_ = null; if (rolloutStateBuilder_ != null) { rolloutStateBuilder_.dispose(); rolloutStateBuilder_ = null; } rolloutFailureReason_ = ""; result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } lastUpdateTime_ = null; if (lastUpdateTimeBuilder_ != null) { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } experimentLength_ = null; if (experimentLengthBuilder_ != null) { experimentLengthBuilder_.dispose(); experimentLengthBuilder_ = null; } if (variantsHistoryBuilder_ == null) { variantsHistory_ = java.util.Collections.emptyList(); } else { variantsHistory_ = null; variantsHistoryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.ExperimentProto .internal_static_google_cloud_dialogflow_cx_v3beta1_Experiment_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment build() { com.google.cloud.dialogflow.cx.v3beta1.Experiment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.Experiment result) { if (variantsHistoryBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0)) { variantsHistory_ = java.util.Collections.unmodifiableList(variantsHistory_); bitField0_ = (bitField0_ & ~0x00004000); } result.variantsHistory_ = variantsHistory_; } else { result.variantsHistory_ = variantsHistoryBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Experiment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.state_ = state_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.definition_ = definitionBuilder_ == null ? definition_ : definitionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.rolloutConfig_ = rolloutConfigBuilder_ == null ? rolloutConfig_ : rolloutConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.rolloutState_ = rolloutStateBuilder_ == null ? rolloutState_ : rolloutStateBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.rolloutFailureReason_ = rolloutFailureReason_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000800) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00001000) != 0)) { result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00002000) != 0)) { result.experimentLength_ = experimentLengthBuilder_ == null ? experimentLength_ : experimentLengthBuilder_.build(); to_bitField0_ |= 0x00000100; } 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Experiment) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000004; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.hasDefinition()) { mergeDefinition(other.getDefinition()); } if (other.hasRolloutConfig()) { mergeRolloutConfig(other.getRolloutConfig()); } if (other.hasRolloutState()) { mergeRolloutState(other.getRolloutState()); } if (!other.getRolloutFailureReason().isEmpty()) { rolloutFailureReason_ = other.rolloutFailureReason_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasResult()) { mergeResult(other.getResult()); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.hasLastUpdateTime()) { mergeLastUpdateTime(other.getLastUpdateTime()); } if (other.hasExperimentLength()) { mergeExperimentLength(other.getExperimentLength()); } if (variantsHistoryBuilder_ == null) { if (!other.variantsHistory_.isEmpty()) { if (variantsHistory_.isEmpty()) { variantsHistory_ = other.variantsHistory_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureVariantsHistoryIsMutable(); variantsHistory_.addAll(other.variantsHistory_); } onChanged(); } } else { if (!other.variantsHistory_.isEmpty()) { if (variantsHistoryBuilder_.isEmpty()) { variantsHistoryBuilder_.dispose(); variantsHistoryBuilder_ = null; variantsHistory_ = other.variantsHistory_; bitField0_ = (bitField0_ & ~0x00004000); variantsHistoryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariantsHistoryFieldBuilder() : null; } else { variantsHistoryBuilder_.addAllMessages(other.variantsHistory_); } } } 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: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getDefinitionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 58 case 66: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 66 case 74: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 74 case 82: { input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 82 case 90: { input.readMessage( getExperimentLengthFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 90 case 98: { com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.parser(), extensionRegistry); if (variantsHistoryBuilder_ == null) { ensureVariantsHistoryIsMutable(); variantsHistory_.add(m); } else { variantsHistoryBuilder_.addMessage(m); } break; } // case 98 case 114: { input.readMessage(getRolloutConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 114 case 122: { input.readMessage(getRolloutStateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 122 case 130: { rolloutFailureReason_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; 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 bitField0_; private java.lang.Object name_ = ""; /** * * *
     * The name of the experiment.
     * Format:
     * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
     * 
* * 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; } } /** * * *
     * The name of the experiment.
     * Format:
     * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
     * 
* * 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; } } /** * * *
     * The name of the experiment.
     * Format:
     * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
     * 
* * 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; } /** * * *
     * The name of the experiment.
     * Format:
     * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The name of the experiment.
     * Format:
     * projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
     * 
* * 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 java.lang.Object displayName_ = ""; /** * * *
     * Required. The human-readable name of the experiment (unique in an
     * environment). Limit of 64 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The human-readable name of the experiment (unique in an
     * environment). Limit of 64 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The human-readable name of the experiment (unique in an
     * environment). Limit of 64 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. The human-readable name of the experiment (unique in an
     * environment). Limit of 64 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Required. The human-readable name of the experiment (unique in an
     * environment). Limit of 64 characters.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object description_ = ""; /** * * *
     * The human-readable description of the experiment.
     * 
* * string description = 3; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The human-readable description of the experiment.
     * 
* * string description = 3; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The human-readable description of the experiment.
     * 
* * string description = 3; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The human-readable description of the experiment.
     * 
* * string description = 3; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The human-readable description of the experiment.
     * 
* * string description = 3; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int state_ = 0; /** * * *
     * The current state of the experiment.
     * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
     * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
     * RUNNING->DONE.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * The current state of the experiment.
     * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
     * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
     * RUNNING->DONE.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The current state of the experiment.
     * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
     * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
     * RUNNING->DONE.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @return The state. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.State getState() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.State result = com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.UNRECOGNIZED : result; } /** * * *
     * The current state of the experiment.
     * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
     * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
     * RUNNING->DONE.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Experiment.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The current state of the experiment.
     * Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
     * Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
     * RUNNING->DONE.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.State state = 4; * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder> definitionBuilder_; /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; * * @return Whether the definition field is set. */ public boolean hasDefinition() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; * * @return The definition. */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition getDefinition() { if (definitionBuilder_ == null) { return definition_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance() : definition_; } else { return definitionBuilder_.getMessage(); } } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public Builder setDefinition( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition value) { if (definitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } definition_ = value; } else { definitionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public Builder setDefinition( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder builderForValue) { if (definitionBuilder_ == null) { definition_ = builderForValue.build(); } else { definitionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public Builder mergeDefinition( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition value) { if (definitionBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && definition_ != null && definition_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition .getDefaultInstance()) { getDefinitionBuilder().mergeFrom(value); } else { definition_ = value; } } else { definitionBuilder_.mergeFrom(value); } if (definition_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public Builder clearDefinition() { bitField0_ = (bitField0_ & ~0x00000010); definition_ = null; if (definitionBuilder_ != null) { definitionBuilder_.dispose(); definitionBuilder_ = null; } onChanged(); return this; } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder getDefinitionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDefinitionFieldBuilder().getBuilder(); } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder getDefinitionOrBuilder() { if (definitionBuilder_ != null) { return definitionBuilder_.getMessageOrBuilder(); } else { return definition_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance() : definition_; } } /** * * *
     * The definition of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder> getDefinitionFieldBuilder() { if (definitionBuilder_ == null) { definitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder>( getDefinition(), getParentForChildren(), isClean()); definition_ = null; } return definitionBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig rolloutConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig, com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.RolloutConfigOrBuilder> rolloutConfigBuilder_; /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; * * @return Whether the rolloutConfig field is set. */ public boolean hasRolloutConfig() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; * * @return The rolloutConfig. */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig getRolloutConfig() { if (rolloutConfigBuilder_ == null) { return rolloutConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance() : rolloutConfig_; } else { return rolloutConfigBuilder_.getMessage(); } } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public Builder setRolloutConfig(com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig value) { if (rolloutConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rolloutConfig_ = value; } else { rolloutConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public Builder setRolloutConfig( com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder builderForValue) { if (rolloutConfigBuilder_ == null) { rolloutConfig_ = builderForValue.build(); } else { rolloutConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public Builder mergeRolloutConfig(com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig value) { if (rolloutConfigBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && rolloutConfig_ != null && rolloutConfig_ != com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance()) { getRolloutConfigBuilder().mergeFrom(value); } else { rolloutConfig_ = value; } } else { rolloutConfigBuilder_.mergeFrom(value); } if (rolloutConfig_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public Builder clearRolloutConfig() { bitField0_ = (bitField0_ & ~0x00000020); rolloutConfig_ = null; if (rolloutConfigBuilder_ != null) { rolloutConfigBuilder_.dispose(); rolloutConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder getRolloutConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRolloutConfigFieldBuilder().getBuilder(); } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfigOrBuilder getRolloutConfigOrBuilder() { if (rolloutConfigBuilder_ != null) { return rolloutConfigBuilder_.getMessageOrBuilder(); } else { return rolloutConfig_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance() : rolloutConfig_; } } /** * * *
     * The configuration for auto rollout. If set, there should be exactly two
     * variants in the experiment (control variant being the default version of
     * the flow), the traffic allocation for the non-control variant will
     * gradually increase to 100% when conditions are met, and eventually
     * replace the control variant to become the default version of the flow.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig, com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.RolloutConfigOrBuilder> getRolloutConfigFieldBuilder() { if (rolloutConfigBuilder_ == null) { rolloutConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig, com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.RolloutConfigOrBuilder>( getRolloutConfig(), getParentForChildren(), isClean()); rolloutConfig_ = null; } return rolloutConfigBuilder_; } private com.google.cloud.dialogflow.cx.v3beta1.RolloutState rolloutState_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.RolloutState, com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder, com.google.cloud.dialogflow.cx.v3beta1.RolloutStateOrBuilder> rolloutStateBuilder_; /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; * * @return Whether the rolloutState field is set. */ public boolean hasRolloutState() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; * * @return The rolloutState. */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutState getRolloutState() { if (rolloutStateBuilder_ == null) { return rolloutState_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance() : rolloutState_; } else { return rolloutStateBuilder_.getMessage(); } } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public Builder setRolloutState(com.google.cloud.dialogflow.cx.v3beta1.RolloutState value) { if (rolloutStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rolloutState_ = value; } else { rolloutStateBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public Builder setRolloutState( com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder builderForValue) { if (rolloutStateBuilder_ == null) { rolloutState_ = builderForValue.build(); } else { rolloutStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public Builder mergeRolloutState(com.google.cloud.dialogflow.cx.v3beta1.RolloutState value) { if (rolloutStateBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && rolloutState_ != null && rolloutState_ != com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance()) { getRolloutStateBuilder().mergeFrom(value); } else { rolloutState_ = value; } } else { rolloutStateBuilder_.mergeFrom(value); } if (rolloutState_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public Builder clearRolloutState() { bitField0_ = (bitField0_ & ~0x00000040); rolloutState_ = null; if (rolloutStateBuilder_ != null) { rolloutStateBuilder_.dispose(); rolloutStateBuilder_ = null; } onChanged(); return this; } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder getRolloutStateBuilder() { bitField0_ |= 0x00000040; onChanged(); return getRolloutStateFieldBuilder().getBuilder(); } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutStateOrBuilder getRolloutStateOrBuilder() { if (rolloutStateBuilder_ != null) { return rolloutStateBuilder_.getMessageOrBuilder(); } else { return rolloutState_ == null ? com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance() : rolloutState_; } } /** * * *
     * State of the auto rollout process.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.RolloutState, com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder, com.google.cloud.dialogflow.cx.v3beta1.RolloutStateOrBuilder> getRolloutStateFieldBuilder() { if (rolloutStateBuilder_ == null) { rolloutStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.RolloutState, com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder, com.google.cloud.dialogflow.cx.v3beta1.RolloutStateOrBuilder>( getRolloutState(), getParentForChildren(), isClean()); rolloutState_ = null; } return rolloutStateBuilder_; } private java.lang.Object rolloutFailureReason_ = ""; /** * * *
     * The reason why rollout has failed. Should only be set when state is
     * ROLLOUT_FAILED.
     * 
* * string rollout_failure_reason = 16; * * @return The rolloutFailureReason. */ public java.lang.String getRolloutFailureReason() { java.lang.Object ref = rolloutFailureReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rolloutFailureReason_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The reason why rollout has failed. Should only be set when state is
     * ROLLOUT_FAILED.
     * 
* * string rollout_failure_reason = 16; * * @return The bytes for rolloutFailureReason. */ public com.google.protobuf.ByteString getRolloutFailureReasonBytes() { java.lang.Object ref = rolloutFailureReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rolloutFailureReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The reason why rollout has failed. Should only be set when state is
     * ROLLOUT_FAILED.
     * 
* * string rollout_failure_reason = 16; * * @param value The rolloutFailureReason to set. * @return This builder for chaining. */ public Builder setRolloutFailureReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } rolloutFailureReason_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The reason why rollout has failed. Should only be set when state is
     * ROLLOUT_FAILED.
     * 
* * string rollout_failure_reason = 16; * * @return This builder for chaining. */ public Builder clearRolloutFailureReason() { rolloutFailureReason_ = getDefaultInstance().getRolloutFailureReason(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * The reason why rollout has failed. Should only be set when state is
     * ROLLOUT_FAILED.
     * 
* * string rollout_failure_reason = 16; * * @param value The bytes for rolloutFailureReason to set. * @return This builder for chaining. */ public Builder setRolloutFailureReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rolloutFailureReason_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder> resultBuilder_; /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; * * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; * * @return The result. */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getResult() { if (resultBuilder_ == null) { return result_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public Builder setResult(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public Builder setResult( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && result_ != null && result_ != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000100); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder getResultBuilder() { bitField0_ |= 0x00000100; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance() : result_; } } /** * * *
     * Inference result of the experiment.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder>( getResult(), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000200); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Creation time of this experiment.
     * 
* * .google.protobuf.Timestamp create_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000400); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000400; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
     * Start time of this experiment.
     * 
* * .google.protobuf.Timestamp start_time = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } else { return endTimeBuilder_.getMessage(); } } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endTime_ = value; } else { endTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } } else { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000800); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** * * *
     * End time of this experiment.
     * 
* * .google.protobuf.Timestamp end_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdateTime_ = value; } else { lastUpdateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && lastUpdateTime_ != null && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } } else { lastUpdateTimeBuilder_.mergeFrom(value); } if (lastUpdateTime_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ public Builder clearLastUpdateTime() { bitField0_ = (bitField0_ & ~0x00001000); lastUpdateTime_ = null; if (lastUpdateTimeBuilder_ != null) { lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { bitField0_ |= 0x00001000; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } } /** * * *
     * Last update time of this experiment.
     * 
* * .google.protobuf.Timestamp last_update_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; } private com.google.protobuf.Duration experimentLength_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> experimentLengthBuilder_; /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; * * @return Whether the experimentLength field is set. */ public boolean hasExperimentLength() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; * * @return The experimentLength. */ public com.google.protobuf.Duration getExperimentLength() { if (experimentLengthBuilder_ == null) { return experimentLength_ == null ? com.google.protobuf.Duration.getDefaultInstance() : experimentLength_; } else { return experimentLengthBuilder_.getMessage(); } } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ public Builder setExperimentLength(com.google.protobuf.Duration value) { if (experimentLengthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } experimentLength_ = value; } else { experimentLengthBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ public Builder setExperimentLength(com.google.protobuf.Duration.Builder builderForValue) { if (experimentLengthBuilder_ == null) { experimentLength_ = builderForValue.build(); } else { experimentLengthBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ public Builder mergeExperimentLength(com.google.protobuf.Duration value) { if (experimentLengthBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && experimentLength_ != null && experimentLength_ != com.google.protobuf.Duration.getDefaultInstance()) { getExperimentLengthBuilder().mergeFrom(value); } else { experimentLength_ = value; } } else { experimentLengthBuilder_.mergeFrom(value); } if (experimentLength_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ public Builder clearExperimentLength() { bitField0_ = (bitField0_ & ~0x00002000); experimentLength_ = null; if (experimentLengthBuilder_ != null) { experimentLengthBuilder_.dispose(); experimentLengthBuilder_ = null; } onChanged(); return this; } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ public com.google.protobuf.Duration.Builder getExperimentLengthBuilder() { bitField0_ |= 0x00002000; onChanged(); return getExperimentLengthFieldBuilder().getBuilder(); } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ public com.google.protobuf.DurationOrBuilder getExperimentLengthOrBuilder() { if (experimentLengthBuilder_ != null) { return experimentLengthBuilder_.getMessageOrBuilder(); } else { return experimentLength_ == null ? com.google.protobuf.Duration.getDefaultInstance() : experimentLength_; } } /** * * *
     * Maximum number of days to run the experiment. If auto-rollout is
     * not enabled, default value and maximum will be 30 days. If auto-rollout is
     * enabled, default value and maximum will be 6 days.
     * 
* * .google.protobuf.Duration experiment_length = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getExperimentLengthFieldBuilder() { if (experimentLengthBuilder_ == null) { experimentLengthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getExperimentLength(), getParentForChildren(), isClean()); experimentLength_ = null; } return experimentLengthBuilder_; } private java.util.List variantsHistory_ = java.util.Collections.emptyList(); private void ensureVariantsHistoryIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { variantsHistory_ = new java.util.ArrayList( variantsHistory_); bitField0_ |= 0x00004000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder> variantsHistoryBuilder_; /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public java.util.List getVariantsHistoryList() { if (variantsHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(variantsHistory_); } else { return variantsHistoryBuilder_.getMessageList(); } } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public int getVariantsHistoryCount() { if (variantsHistoryBuilder_ == null) { return variantsHistory_.size(); } else { return variantsHistoryBuilder_.getCount(); } } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory getVariantsHistory(int index) { if (variantsHistoryBuilder_ == null) { return variantsHistory_.get(index); } else { return variantsHistoryBuilder_.getMessage(index); } } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder setVariantsHistory( int index, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory value) { if (variantsHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariantsHistoryIsMutable(); variantsHistory_.set(index, value); onChanged(); } else { variantsHistoryBuilder_.setMessage(index, value); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder setVariantsHistory( int index, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder builderForValue) { if (variantsHistoryBuilder_ == null) { ensureVariantsHistoryIsMutable(); variantsHistory_.set(index, builderForValue.build()); onChanged(); } else { variantsHistoryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder addVariantsHistory( com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory value) { if (variantsHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariantsHistoryIsMutable(); variantsHistory_.add(value); onChanged(); } else { variantsHistoryBuilder_.addMessage(value); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder addVariantsHistory( int index, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory value) { if (variantsHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariantsHistoryIsMutable(); variantsHistory_.add(index, value); onChanged(); } else { variantsHistoryBuilder_.addMessage(index, value); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder addVariantsHistory( com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder builderForValue) { if (variantsHistoryBuilder_ == null) { ensureVariantsHistoryIsMutable(); variantsHistory_.add(builderForValue.build()); onChanged(); } else { variantsHistoryBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder addVariantsHistory( int index, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder builderForValue) { if (variantsHistoryBuilder_ == null) { ensureVariantsHistoryIsMutable(); variantsHistory_.add(index, builderForValue.build()); onChanged(); } else { variantsHistoryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder addAllVariantsHistory( java.lang.Iterable values) { if (variantsHistoryBuilder_ == null) { ensureVariantsHistoryIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variantsHistory_); onChanged(); } else { variantsHistoryBuilder_.addAllMessages(values); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder clearVariantsHistory() { if (variantsHistoryBuilder_ == null) { variantsHistory_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { variantsHistoryBuilder_.clear(); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public Builder removeVariantsHistory(int index) { if (variantsHistoryBuilder_ == null) { ensureVariantsHistoryIsMutable(); variantsHistory_.remove(index); onChanged(); } else { variantsHistoryBuilder_.remove(index); } return this; } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder getVariantsHistoryBuilder( int index) { return getVariantsHistoryFieldBuilder().getBuilder(index); } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder getVariantsHistoryOrBuilder(int index) { if (variantsHistoryBuilder_ == null) { return variantsHistory_.get(index); } else { return variantsHistoryBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public java.util.List getVariantsHistoryOrBuilderList() { if (variantsHistoryBuilder_ != null) { return variantsHistoryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(variantsHistory_); } } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder addVariantsHistoryBuilder() { return getVariantsHistoryFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.getDefaultInstance()); } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder addVariantsHistoryBuilder( int index) { return getVariantsHistoryFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.getDefaultInstance()); } /** * * *
     * The history of updates to the experiment variants.
     * 
* * repeated .google.cloud.dialogflow.cx.v3beta1.VariantsHistory variants_history = 12; * */ public java.util.List getVariantsHistoryBuilderList() { return getVariantsHistoryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder> getVariantsHistoryFieldBuilder() { if (variantsHistoryBuilder_ == null) { variantsHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder>( variantsHistory_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); variantsHistory_ = null; } return variantsHistoryBuilder_; } @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:google.cloud.dialogflow.cx.v3beta1.Experiment) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Experiment) private static final com.google.cloud.dialogflow.cx.v3beta1.Experiment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Experiment(); } public static com.google.cloud.dialogflow.cx.v3beta1.Experiment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Experiment 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 com.google.cloud.dialogflow.cx.v3beta1.Experiment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy