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

com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage Maven / Gradle / Ivy

There is a newer version: 0.66.0
Show newest version
/*
 * Copyright 2020 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/v3/test_case.proto

package com.google.cloud.dialogflow.cx.v3;

/**
 *
 *
 * 
 * Transition route group coverage represents the percentage of all possible
 * transition routes present within any of a parent's test cases. The results
 * are grouped by the transition route group.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} */ public final class TransitionRouteGroupCoverage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) TransitionRouteGroupCoverageOrBuilder { private static final long serialVersionUID = 0L; // Use TransitionRouteGroupCoverage.newBuilder() to construct. private TransitionRouteGroupCoverage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransitionRouteGroupCoverage() { coverages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitionRouteGroupCoverage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransitionRouteGroupCoverage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { coverages_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage>(); mutable_bitField0_ |= 0x00000001; } coverages_.add( input.readMessage( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .parser(), extensionRegistry)); break; } case 21: { coverageScore_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { coverages_ = java.util.Collections.unmodifiableList(coverages_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.class, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder.class); } public interface CoverageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) com.google.protobuf.MessageOrBuilder { /** * * *
     * Transition route group metadata. Only name and displayName will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; * * @return Whether the routeGroup field is set. */ boolean hasRouteGroup(); /** * * *
     * Transition route group metadata. Only name and displayName will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; * * @return The routeGroup. */ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getRouteGroup(); /** * * *
     * Transition route group metadata. Only name and displayName will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder getRouteGroupOrBuilder(); /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition> getTransitionsList(); /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition getTransitions(int index); /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ int getTransitionsCount(); /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ java.util.List< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder> getTransitionsOrBuilderList(); /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.TransitionOrBuilder getTransitionsOrBuilder(int index); /** * * *
     * The percent of transition routes in the transition route group that are
     * covered.
     * 
* * float coverage_score = 3; * * @return The coverageScore. */ float getCoverageScore(); } /** * * *
   * Coverage result message for one transition route group.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} */ public static final class Coverage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) CoverageOrBuilder { private static final long serialVersionUID = 0L; // Use Coverage.newBuilder() to construct. private Coverage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Coverage() { transitions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Coverage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Coverage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder subBuilder = null; if (routeGroup_ != null) { subBuilder = routeGroup_.toBuilder(); } routeGroup_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(routeGroup_); routeGroup_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { transitions_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition>(); mutable_bitField0_ |= 0x00000001; } transitions_.add( input.readMessage( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition.parser(), extensionRegistry)); break; } case 29: { coverageScore_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.class, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder .class); } public interface TransitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) com.google.protobuf.MessageOrBuilder { /** * * *
       * Intent route or condition route.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; * * @return Whether the transitionRoute field is set. */ boolean hasTransitionRoute(); /** * * *
       * Intent route or condition route.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; * * @return The transitionRoute. */ com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoute(); /** * * *
       * Intent route or condition route.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRouteOrBuilder(); /** * * *
       * Whether or not the transition route is covered by at least one of the
       * agent's test cases.
       * 
* * bool covered = 2; * * @return The covered. */ boolean getCovered(); } /** * * *
     * A transition coverage in a transition route group.
     * 
* * Protobuf type {@code * google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} */ public static final class Transition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) TransitionOrBuilder { private static final long serialVersionUID = 0L; // Use Transition.newBuilder() to construct. private Transition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transition() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Transition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Transition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder subBuilder = null; if (transitionRoute_ != null) { subBuilder = transitionRoute_.toBuilder(); } transitionRoute_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.TransitionRoute.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transitionRoute_); transitionRoute_ = subBuilder.buildPartial(); } break; } case 16: { covered_ = input.readBool(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_Transition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_Transition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .class, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder.class); } public static final int TRANSITION_ROUTE_FIELD_NUMBER = 1; private com.google.cloud.dialogflow.cx.v3.TransitionRoute transitionRoute_; /** * * *
       * Intent route or condition route.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; * * @return Whether the transitionRoute field is set. */ @java.lang.Override public boolean hasTransitionRoute() { return transitionRoute_ != null; } /** * * *
       * Intent route or condition route.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; * * @return The transitionRoute. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoute() { return transitionRoute_ == null ? com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance() : transitionRoute_; } /** * * *
       * Intent route or condition route.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRouteOrBuilder() { return getTransitionRoute(); } public static final int COVERED_FIELD_NUMBER = 2; private boolean covered_; /** * * *
       * Whether or not the transition route is covered by at least one of the
       * agent's test cases.
       * 
* * bool covered = 2; * * @return The covered. */ @java.lang.Override public boolean getCovered() { return covered_; } 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 (transitionRoute_ != null) { output.writeMessage(1, getTransitionRoute()); } if (covered_ != false) { output.writeBool(2, covered_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transitionRoute_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTransitionRoute()); } if (covered_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, covered_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition other = (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) obj; if (hasTransitionRoute() != other.hasTransitionRoute()) return false; if (hasTransitionRoute()) { if (!getTransitionRoute().equals(other.getTransitionRoute())) return false; } if (getCovered() != other.getCovered()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTransitionRoute()) { hash = (37 * hash) + TRANSITION_ROUTE_FIELD_NUMBER; hash = (53 * hash) + getTransitionRoute().hashCode(); } hash = (37 * hash) + COVERED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCovered()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage .Transition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage .Transition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage .Transition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage .Transition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage .Transition 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.v3.TransitionRouteGroupCoverage.Coverage.Transition 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 transition coverage in a transition route group.
       * 
* * Protobuf type {@code * google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_Transition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_Transition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .class, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder.class); } // Construct using // com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); if (transitionRouteBuilder_ == null) { transitionRoute_ = null; } else { transitionRoute_ = null; transitionRouteBuilder_ = null; } covered_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_Transition_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition build() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition(this); if (transitionRouteBuilder_ == null) { result.transitionRoute_ = transitionRoute_; } else { result.transitionRoute_ = transitionRouteBuilder_.build(); } result.covered_ = covered_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition other) { if (other == com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .getDefaultInstance()) return this; if (other.hasTransitionRoute()) { mergeTransitionRoute(other.getTransitionRoute()); } if (other.getCovered() != false) { setCovered(other.getCovered()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.cloud.dialogflow.cx.v3.TransitionRoute transitionRoute_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRoute, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder> transitionRouteBuilder_; /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; * * @return Whether the transitionRoute field is set. */ public boolean hasTransitionRoute() { return transitionRouteBuilder_ != null || transitionRoute_ != null; } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; * * @return The transitionRoute. */ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoute() { if (transitionRouteBuilder_ == null) { return transitionRoute_ == null ? com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance() : transitionRoute_; } else { return transitionRouteBuilder_.getMessage(); } } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public Builder setTransitionRoute(com.google.cloud.dialogflow.cx.v3.TransitionRoute value) { if (transitionRouteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transitionRoute_ = value; onChanged(); } else { transitionRouteBuilder_.setMessage(value); } return this; } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public Builder setTransitionRoute( com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue) { if (transitionRouteBuilder_ == null) { transitionRoute_ = builderForValue.build(); onChanged(); } else { transitionRouteBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public Builder mergeTransitionRoute( com.google.cloud.dialogflow.cx.v3.TransitionRoute value) { if (transitionRouteBuilder_ == null) { if (transitionRoute_ != null) { transitionRoute_ = com.google.cloud.dialogflow.cx.v3.TransitionRoute.newBuilder(transitionRoute_) .mergeFrom(value) .buildPartial(); } else { transitionRoute_ = value; } onChanged(); } else { transitionRouteBuilder_.mergeFrom(value); } return this; } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public Builder clearTransitionRoute() { if (transitionRouteBuilder_ == null) { transitionRoute_ = null; onChanged(); } else { transitionRoute_ = null; transitionRouteBuilder_ = null; } return this; } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRouteBuilder() { onChanged(); return getTransitionRouteFieldBuilder().getBuilder(); } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRouteOrBuilder() { if (transitionRouteBuilder_ != null) { return transitionRouteBuilder_.getMessageOrBuilder(); } else { return transitionRoute_ == null ? com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance() : transitionRoute_; } } /** * * *
         * Intent route or condition route.
         * 
* * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRoute, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder> getTransitionRouteFieldBuilder() { if (transitionRouteBuilder_ == null) { transitionRouteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRoute, com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>( getTransitionRoute(), getParentForChildren(), isClean()); transitionRoute_ = null; } return transitionRouteBuilder_; } private boolean covered_; /** * * *
         * Whether or not the transition route is covered by at least one of the
         * agent's test cases.
         * 
* * bool covered = 2; * * @return The covered. */ @java.lang.Override public boolean getCovered() { return covered_; } /** * * *
         * Whether or not the transition route is covered by at least one of the
         * agent's test cases.
         * 
* * bool covered = 2; * * @param value The covered to set. * @return This builder for chaining. */ public Builder setCovered(boolean value) { covered_ = value; onChanged(); return this; } /** * * *
         * Whether or not the transition route is covered by at least one of the
         * agent's test cases.
         * 
* * bool covered = 2; * * @return This builder for chaining. */ public Builder clearCovered() { covered_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) private static final com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition(); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transition(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ROUTE_GROUP_FIELD_NUMBER = 1; private com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup routeGroup_; /** * * *
     * Transition route group metadata. Only name and displayName will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; * * @return Whether the routeGroup field is set. */ @java.lang.Override public boolean hasRouteGroup() { return routeGroup_ != null; } /** * * *
     * Transition route group metadata. Only name and displayName will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; * * @return The routeGroup. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getRouteGroup() { return routeGroup_ == null ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance() : routeGroup_; } /** * * *
     * Transition route group metadata. Only name and displayName will be set.
     * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder getRouteGroupOrBuilder() { return getRouteGroup(); } public static final int TRANSITIONS_FIELD_NUMBER = 2; private java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition> transitions_; /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ @java.lang.Override public java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition> getTransitionsList() { return transitions_; } /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder> getTransitionsOrBuilderList() { return transitions_; } /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ @java.lang.Override public int getTransitionsCount() { return transitions_.size(); } /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition getTransitions(int index) { return transitions_.get(index); } /** * * *
     * The list of transition routes and coverage in the transition route group.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder getTransitionsOrBuilder(int index) { return transitions_.get(index); } public static final int COVERAGE_SCORE_FIELD_NUMBER = 3; private float coverageScore_; /** * * *
     * The percent of transition routes in the transition route group that are
     * covered.
     * 
* * float coverage_score = 3; * * @return The coverageScore. */ @java.lang.Override public float getCoverageScore() { return coverageScore_; } 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 (routeGroup_ != null) { output.writeMessage(1, getRouteGroup()); } for (int i = 0; i < transitions_.size(); i++) { output.writeMessage(2, transitions_.get(i)); } if (coverageScore_ != 0F) { output.writeFloat(3, coverageScore_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (routeGroup_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRouteGroup()); } for (int i = 0; i < transitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, transitions_.get(i)); } if (coverageScore_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, coverageScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage other = (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) obj; if (hasRouteGroup() != other.hasRouteGroup()) return false; if (hasRouteGroup()) { if (!getRouteGroup().equals(other.getRouteGroup())) return false; } if (!getTransitionsList().equals(other.getTransitionsList())) return false; if (java.lang.Float.floatToIntBits(getCoverageScore()) != java.lang.Float.floatToIntBits(other.getCoverageScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRouteGroup()) { hash = (37 * hash) + ROUTE_GROUP_FIELD_NUMBER; hash = (53 * hash) + getRouteGroup().hashCode(); } if (getTransitionsCount() > 0) { hash = (37 * hash) + TRANSITIONS_FIELD_NUMBER; hash = (53 * hash) + getTransitionsList().hashCode(); } hash = (37 * hash) + COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getCoverageScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage 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.v3.TransitionRouteGroupCoverage.Coverage 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; } /** * * *
     * Coverage result message for one transition route group.
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.class, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder .class); } // Construct using // com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTransitionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (routeGroupBuilder_ == null) { routeGroup_ = null; } else { routeGroup_ = null; routeGroupBuilder_ = null; } if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { transitionsBuilder_.clear(); } coverageScore_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_Coverage_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage build() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(this); int from_bitField0_ = bitField0_; if (routeGroupBuilder_ == null) { result.routeGroup_ = routeGroup_; } else { result.routeGroup_ = routeGroupBuilder_.build(); } if (transitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.transitions_ = transitions_; } else { result.transitions_ = transitionsBuilder_.build(); } result.coverageScore_ = coverageScore_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage other) { if (other == com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .getDefaultInstance()) return this; if (other.hasRouteGroup()) { mergeRouteGroup(other.getRouteGroup()); } if (transitionsBuilder_ == null) { if (!other.transitions_.isEmpty()) { if (transitions_.isEmpty()) { transitions_ = other.transitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTransitionsIsMutable(); transitions_.addAll(other.transitions_); } onChanged(); } } else { if (!other.transitions_.isEmpty()) { if (transitionsBuilder_.isEmpty()) { transitionsBuilder_.dispose(); transitionsBuilder_ = null; transitions_ = other.transitions_; bitField0_ = (bitField0_ & ~0x00000001); transitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionsFieldBuilder() : null; } else { transitionsBuilder_.addAllMessages(other.transitions_); } } } if (other.getCoverageScore() != 0F) { setCoverageScore(other.getCoverageScore()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup routeGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder> routeGroupBuilder_; /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; * * @return Whether the routeGroup field is set. */ public boolean hasRouteGroup() { return routeGroupBuilder_ != null || routeGroup_ != null; } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; * * @return The routeGroup. */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getRouteGroup() { if (routeGroupBuilder_ == null) { return routeGroup_ == null ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance() : routeGroup_; } else { return routeGroupBuilder_.getMessage(); } } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public Builder setRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) { if (routeGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routeGroup_ = value; onChanged(); } else { routeGroupBuilder_.setMessage(value); } return this; } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public Builder setRouteGroup( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder builderForValue) { if (routeGroupBuilder_ == null) { routeGroup_ = builderForValue.build(); onChanged(); } else { routeGroupBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public Builder mergeRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) { if (routeGroupBuilder_ == null) { if (routeGroup_ != null) { routeGroup_ = com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.newBuilder(routeGroup_) .mergeFrom(value) .buildPartial(); } else { routeGroup_ = value; } onChanged(); } else { routeGroupBuilder_.mergeFrom(value); } return this; } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public Builder clearRouteGroup() { if (routeGroupBuilder_ == null) { routeGroup_ = null; onChanged(); } else { routeGroup_ = null; routeGroupBuilder_ = null; } return this; } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getRouteGroupBuilder() { onChanged(); return getRouteGroupFieldBuilder().getBuilder(); } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder getRouteGroupOrBuilder() { if (routeGroupBuilder_ != null) { return routeGroupBuilder_.getMessageOrBuilder(); } else { return routeGroup_ == null ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance() : routeGroup_; } } /** * * *
       * Transition route group metadata. Only name and displayName will be set.
       * 
* * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder> getRouteGroupFieldBuilder() { if (routeGroupBuilder_ == null) { routeGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder>( getRouteGroup(), getParentForChildren(), isClean()); routeGroup_ = null; } return routeGroupBuilder_; } private java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition> transitions_ = java.util.Collections.emptyList(); private void ensureTransitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { transitions_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition>(transitions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder> transitionsBuilder_; /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition> getTransitionsList() { if (transitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transitions_); } else { return transitionsBuilder_.getMessageList(); } } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public int getTransitionsCount() { if (transitionsBuilder_ == null) { return transitions_.size(); } else { return transitionsBuilder_.getCount(); } } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition getTransitions(int index) { if (transitionsBuilder_ == null) { return transitions_.get(index); } else { return transitionsBuilder_.getMessage(index); } } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder setTransitions( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition value) { if (transitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionsIsMutable(); transitions_.set(index, value); onChanged(); } else { transitionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder setTransitions( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.set(index, builderForValue.build()); onChanged(); } else { transitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder addTransitions( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition value) { if (transitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionsIsMutable(); transitions_.add(value); onChanged(); } else { transitionsBuilder_.addMessage(value); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder addTransitions( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition value) { if (transitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransitionsIsMutable(); transitions_.add(index, value); onChanged(); } else { transitionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder addTransitions( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.add(builderForValue.build()); onChanged(); } else { transitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder addTransitions( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.Builder builderForValue) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.add(index, builderForValue.build()); onChanged(); } else { transitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder addAllTransitions( java.lang.Iterable< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition> values) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitions_); onChanged(); } else { transitionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder clearTransitions() { if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { transitionsBuilder_.clear(); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public Builder removeTransitions(int index) { if (transitionsBuilder_ == null) { ensureTransitionsIsMutable(); transitions_.remove(index); onChanged(); } else { transitionsBuilder_.remove(index); } return this; } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder getTransitionsBuilder(int index) { return getTransitionsFieldBuilder().getBuilder(index); } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder getTransitionsOrBuilder(int index) { if (transitionsBuilder_ == null) { return transitions_.get(index); } else { return transitionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder> getTransitionsOrBuilderList() { if (transitionsBuilder_ != null) { return transitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transitions_); } } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder addTransitionsBuilder() { return getTransitionsFieldBuilder() .addBuilder( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .getDefaultInstance()); } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder addTransitionsBuilder(int index) { return getTransitionsFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .getDefaultInstance()); } /** * * *
       * The list of transition routes and coverage in the transition route group.
       * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition transitions = 2; * */ public java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder> getTransitionsBuilderList() { return getTransitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder> getTransitionsFieldBuilder() { if (transitionsBuilder_ == null) { transitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition .Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder>( transitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); transitions_ = null; } return transitionsBuilder_; } private float coverageScore_; /** * * *
       * The percent of transition routes in the transition route group that are
       * covered.
       * 
* * float coverage_score = 3; * * @return The coverageScore. */ @java.lang.Override public float getCoverageScore() { return coverageScore_; } /** * * *
       * The percent of transition routes in the transition route group that are
       * covered.
       * 
* * float coverage_score = 3; * * @param value The coverageScore to set. * @return This builder for chaining. */ public Builder setCoverageScore(float value) { coverageScore_ = value; onChanged(); return this; } /** * * *
       * The percent of transition routes in the transition route group that are
       * covered.
       * 
* * float coverage_score = 3; * * @return This builder for chaining. */ public Builder clearCoverageScore() { coverageScore_ = 0F; 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.v3.TransitionRouteGroupCoverage.Coverage) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) private static final com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Coverage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Coverage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int COVERAGES_FIELD_NUMBER = 1; private java.util.List coverages_; /** * * *
   * Transition route group coverages.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ @java.lang.Override public java.util.List getCoveragesList() { return coverages_; } /** * * *
   * Transition route group coverages.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder> getCoveragesOrBuilderList() { return coverages_; } /** * * *
   * Transition route group coverages.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ @java.lang.Override public int getCoveragesCount() { return coverages_.size(); } /** * * *
   * Transition route group coverages.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage getCoverages( int index) { return coverages_.get(index); } /** * * *
   * Transition route group coverages.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder getCoveragesOrBuilder(int index) { return coverages_.get(index); } public static final int COVERAGE_SCORE_FIELD_NUMBER = 2; private float coverageScore_; /** * * *
   * The percent of transition routes in all the transition route groups that
   * are covered.
   * 
* * float coverage_score = 2; * * @return The coverageScore. */ @java.lang.Override public float getCoverageScore() { return coverageScore_; } 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 < coverages_.size(); i++) { output.writeMessage(1, coverages_.get(i)); } if (coverageScore_ != 0F) { output.writeFloat(2, coverageScore_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < coverages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, coverages_.get(i)); } if (coverageScore_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, coverageScore_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage other = (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) obj; if (!getCoveragesList().equals(other.getCoveragesList())) return false; if (java.lang.Float.floatToIntBits(getCoverageScore()) != java.lang.Float.floatToIntBits(other.getCoverageScore())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCoveragesCount() > 0) { hash = (37 * hash) + COVERAGES_FIELD_NUMBER; hash = (53 * hash) + getCoveragesList().hashCode(); } hash = (37 * hash) + COVERAGE_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getCoverageScore()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage 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.v3.TransitionRouteGroupCoverage 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; } /** * * *
   * Transition route group coverage represents the percentage of all possible
   * transition routes present within any of a parent's test cases. The results
   * are grouped by the transition route group.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.class, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCoveragesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (coveragesBuilder_ == null) { coverages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { coveragesBuilder_.clear(); } coverageScore_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.TestCaseProto .internal_static_google_cloud_dialogflow_cx_v3_TransitionRouteGroupCoverage_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage build() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(this); int from_bitField0_ = bitField0_; if (coveragesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { coverages_ = java.util.Collections.unmodifiableList(coverages_); bitField0_ = (bitField0_ & ~0x00000001); } result.coverages_ = coverages_; } else { result.coverages_ = coveragesBuilder_.build(); } result.coverageScore_ = coverageScore_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) { return mergeFrom((com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage other) { if (other == com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance()) return this; if (coveragesBuilder_ == null) { if (!other.coverages_.isEmpty()) { if (coverages_.isEmpty()) { coverages_ = other.coverages_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCoveragesIsMutable(); coverages_.addAll(other.coverages_); } onChanged(); } } else { if (!other.coverages_.isEmpty()) { if (coveragesBuilder_.isEmpty()) { coveragesBuilder_.dispose(); coveragesBuilder_ = null; coverages_ = other.coverages_; bitField0_ = (bitField0_ & ~0x00000001); coveragesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCoveragesFieldBuilder() : null; } else { coveragesBuilder_.addAllMessages(other.coverages_); } } } if (other.getCoverageScore() != 0F) { setCoverageScore(other.getCoverageScore()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List coverages_ = java.util.Collections.emptyList(); private void ensureCoveragesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { coverages_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage>( coverages_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder> coveragesBuilder_; /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public java.util.List getCoveragesList() { if (coveragesBuilder_ == null) { return java.util.Collections.unmodifiableList(coverages_); } else { return coveragesBuilder_.getMessageList(); } } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public int getCoveragesCount() { if (coveragesBuilder_ == null) { return coverages_.size(); } else { return coveragesBuilder_.getCount(); } } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage getCoverages( int index) { if (coveragesBuilder_ == null) { return coverages_.get(index); } else { return coveragesBuilder_.getMessage(index); } } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder setCoverages( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage value) { if (coveragesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoveragesIsMutable(); coverages_.set(index, value); onChanged(); } else { coveragesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder setCoverages( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder builderForValue) { if (coveragesBuilder_ == null) { ensureCoveragesIsMutable(); coverages_.set(index, builderForValue.build()); onChanged(); } else { coveragesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder addCoverages( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage value) { if (coveragesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoveragesIsMutable(); coverages_.add(value); onChanged(); } else { coveragesBuilder_.addMessage(value); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder addCoverages( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage value) { if (coveragesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCoveragesIsMutable(); coverages_.add(index, value); onChanged(); } else { coveragesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder addCoverages( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder builderForValue) { if (coveragesBuilder_ == null) { ensureCoveragesIsMutable(); coverages_.add(builderForValue.build()); onChanged(); } else { coveragesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder addCoverages( int index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder builderForValue) { if (coveragesBuilder_ == null) { ensureCoveragesIsMutable(); coverages_.add(index, builderForValue.build()); onChanged(); } else { coveragesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder addAllCoverages( java.lang.Iterable< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage> values) { if (coveragesBuilder_ == null) { ensureCoveragesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, coverages_); onChanged(); } else { coveragesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder clearCoverages() { if (coveragesBuilder_ == null) { coverages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { coveragesBuilder_.clear(); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public Builder removeCoverages(int index) { if (coveragesBuilder_ == null) { ensureCoveragesIsMutable(); coverages_.remove(index); onChanged(); } else { coveragesBuilder_.remove(index); } return this; } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder getCoveragesBuilder(int index) { return getCoveragesFieldBuilder().getBuilder(index); } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder getCoveragesOrBuilder(int index) { if (coveragesBuilder_ == null) { return coverages_.get(index); } else { return coveragesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public java.util.List< ? extends com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder> getCoveragesOrBuilderList() { if (coveragesBuilder_ != null) { return coveragesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(coverages_); } } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder addCoveragesBuilder() { return getCoveragesFieldBuilder() .addBuilder( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .getDefaultInstance()); } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder addCoveragesBuilder(int index) { return getCoveragesFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .getDefaultInstance()); } /** * * *
     * Transition route group coverages.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage coverages = 1; * */ public java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder> getCoveragesBuilderList() { return getCoveragesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder> getCoveragesFieldBuilder() { if (coveragesBuilder_ == null) { coveragesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.CoverageOrBuilder>( coverages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); coverages_ = null; } return coveragesBuilder_; } private float coverageScore_; /** * * *
     * The percent of transition routes in all the transition route groups that
     * are covered.
     * 
* * float coverage_score = 2; * * @return The coverageScore. */ @java.lang.Override public float getCoverageScore() { return coverageScore_; } /** * * *
     * The percent of transition routes in all the transition route groups that
     * are covered.
     * 
* * float coverage_score = 2; * * @param value The coverageScore to set. * @return This builder for chaining. */ public Builder setCoverageScore(float value) { coverageScore_ = value; onChanged(); return this; } /** * * *
     * The percent of transition routes in all the transition route groups that
     * are covered.
     * 
* * float coverage_score = 2; * * @return This builder for chaining. */ public Builder clearCoverageScore() { coverageScore_ = 0F; 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.v3.TransitionRouteGroupCoverage) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) private static final com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); } public static com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransitionRouteGroupCoverage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransitionRouteGroupCoverage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy