com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dialogflow-cx-v3beta1 Show documentation
Show all versions of proto-google-cloud-dialogflow-cx-v3beta1 Show documentation
PROTO library for proto-google-cloud-dialogflow-cx-v3beta1
The newest version!
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3beta1/test_case.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.cx.v3beta1;
/**
*
*
*
* Transition coverage represents the percentage of all possible page
* transitions (page-level transition routes and event handlers, excluding
* transition route groups) present within any of a parent's test cases.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionCoverage}
*/
public final class TransitionCoverage extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage)
TransitionCoverageOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransitionCoverage.newBuilder() to construct.
private TransitionCoverage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransitionCoverage() {
transitions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TransitionCoverage();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.class,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Builder.class);
}
public interface TransitionNodeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*
* @return Whether the page field is set.
*/
boolean hasPage();
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*
* @return The page.
*/
com.google.cloud.dialogflow.cx.v3beta1.Page getPage();
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPageOrBuilder();
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*
* @return Whether the flow field is set.
*/
boolean hasFlow();
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*
* @return The flow.
*/
com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow();
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder();
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.KindCase getKindCase();
}
/**
*
*
*
* The source or target of a transition.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode}
*/
public static final class TransitionNode extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode)
TransitionNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransitionNode.newBuilder() to construct.
private TransitionNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransitionNode() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TransitionNode();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_TransitionNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_TransitionNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.class,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder
.class);
}
private int kindCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object kind_;
public enum KindCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PAGE(1),
FLOW(2),
KIND_NOT_SET(0);
private final int value;
private KindCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static KindCase valueOf(int value) {
return forNumber(value);
}
public static KindCase forNumber(int value) {
switch (value) {
case 1:
return PAGE;
case 2:
return FLOW;
case 0:
return KIND_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public KindCase getKindCase() {
return KindCase.forNumber(kindCase_);
}
public static final int PAGE_FIELD_NUMBER = 1;
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*
* @return Whether the page field is set.
*/
@java.lang.Override
public boolean hasPage() {
return kindCase_ == 1;
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*
* @return The page.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.Page getPage() {
if (kindCase_ == 1) {
return (com.google.cloud.dialogflow.cx.v3beta1.Page) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance();
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPageOrBuilder() {
if (kindCase_ == 1) {
return (com.google.cloud.dialogflow.cx.v3beta1.Page) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance();
}
public static final int FLOW_FIELD_NUMBER = 2;
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*
* @return Whether the flow field is set.
*/
@java.lang.Override
public boolean hasFlow() {
return kindCase_ == 2;
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*
* @return The flow.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow() {
if (kindCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance();
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder() {
if (kindCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (kindCase_ == 1) {
output.writeMessage(1, (com.google.cloud.dialogflow.cx.v3beta1.Page) kind_);
}
if (kindCase_ == 2) {
output.writeMessage(2, (com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (kindCase_ == 1) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (com.google.cloud.dialogflow.cx.v3beta1.Page) kind_);
}
if (kindCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode other =
(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) obj;
if (!getKindCase().equals(other.getKindCase())) return false;
switch (kindCase_) {
case 1:
if (!getPage().equals(other.getPage())) return false;
break;
case 2:
if (!getFlow().equals(other.getFlow())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (kindCase_) {
case 1:
hash = (37 * hash) + PAGE_FIELD_NUMBER;
hash = (53 * hash) + getPage().hashCode();
break;
case 2:
hash = (37 * hash) + FLOW_FIELD_NUMBER;
hash = (53 * hash) + getFlow().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* The source or target of a transition.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode)
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_TransitionNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_TransitionNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.class,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder
.class);
}
// Construct using
// com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (pageBuilder_ != null) {
pageBuilder_.clear();
}
if (flowBuilder_ != null) {
flowBuilder_.clear();
}
kindCase_ = 0;
kind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_TransitionNode_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode build() {
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
buildPartial() {
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result =
new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result) {
result.kindCase_ = kindCase_;
result.kind_ = this.kind_;
if (kindCase_ == 1 && pageBuilder_ != null) {
result.kind_ = pageBuilder_.build();
}
if (kindCase_ == 2 && flowBuilder_ != null) {
result.kind_ = flowBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) {
return mergeFrom(
(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode other) {
if (other
== com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()) return this;
switch (other.getKindCase()) {
case PAGE:
{
mergePage(other.getPage());
break;
}
case FLOW:
{
mergeFlow(other.getFlow());
break;
}
case KIND_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getPageFieldBuilder().getBuilder(), extensionRegistry);
kindCase_ = 1;
break;
} // case 10
case 18:
{
input.readMessage(getFlowFieldBuilder().getBuilder(), extensionRegistry);
kindCase_ = 2;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int kindCase_ = 0;
private java.lang.Object kind_;
public KindCase getKindCase() {
return KindCase.forNumber(kindCase_);
}
public Builder clearKind() {
kindCase_ = 0;
kind_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.Page,
com.google.cloud.dialogflow.cx.v3beta1.Page.Builder,
com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder>
pageBuilder_;
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*
* @return Whether the page field is set.
*/
@java.lang.Override
public boolean hasPage() {
return kindCase_ == 1;
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*
* @return The page.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.Page getPage() {
if (pageBuilder_ == null) {
if (kindCase_ == 1) {
return (com.google.cloud.dialogflow.cx.v3beta1.Page) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance();
} else {
if (kindCase_ == 1) {
return pageBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance();
}
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) {
if (pageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
pageBuilder_.setMessage(value);
}
kindCase_ = 1;
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page.Builder builderForValue) {
if (pageBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
pageBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 1;
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
public Builder mergePage(com.google.cloud.dialogflow.cx.v3beta1.Page value) {
if (pageBuilder_ == null) {
if (kindCase_ == 1
&& kind_ != com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) {
kind_ =
com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder(
(com.google.cloud.dialogflow.cx.v3beta1.Page) kind_)
.mergeFrom(value)
.buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 1) {
pageBuilder_.mergeFrom(value);
} else {
pageBuilder_.setMessage(value);
}
}
kindCase_ = 1;
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
public Builder clearPage() {
if (pageBuilder_ == null) {
if (kindCase_ == 1) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 1) {
kindCase_ = 0;
kind_ = null;
}
pageBuilder_.clear();
}
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
public com.google.cloud.dialogflow.cx.v3beta1.Page.Builder getPageBuilder() {
return getPageFieldBuilder().getBuilder();
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPageOrBuilder() {
if ((kindCase_ == 1) && (pageBuilder_ != null)) {
return pageBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 1) {
return (com.google.cloud.dialogflow.cx.v3beta1.Page) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance();
}
}
/**
*
*
*
* Indicates a transition to a
* [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Page page = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.Page,
com.google.cloud.dialogflow.cx.v3beta1.Page.Builder,
com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder>
getPageFieldBuilder() {
if (pageBuilder_ == null) {
if (!(kindCase_ == 1)) {
kind_ = com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance();
}
pageBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.Page,
com.google.cloud.dialogflow.cx.v3beta1.Page.Builder,
com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder>(
(com.google.cloud.dialogflow.cx.v3beta1.Page) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 1;
onChanged();
return pageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.Flow,
com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder,
com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder>
flowBuilder_;
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*
* @return Whether the flow field is set.
*/
@java.lang.Override
public boolean hasFlow() {
return kindCase_ == 2;
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*
* @return The flow.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow() {
if (flowBuilder_ == null) {
if (kindCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance();
} else {
if (kindCase_ == 2) {
return flowBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance();
}
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) {
if (flowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
flowBuilder_.setMessage(value);
}
kindCase_ = 2;
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder builderForValue) {
if (flowBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
flowBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 2;
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) {
if (flowBuilder_ == null) {
if (kindCase_ == 2
&& kind_ != com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance()) {
kind_ =
com.google.cloud.dialogflow.cx.v3beta1.Flow.newBuilder(
(com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_)
.mergeFrom(value)
.buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 2) {
flowBuilder_.mergeFrom(value);
} else {
flowBuilder_.setMessage(value);
}
}
kindCase_ = 2;
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
public Builder clearFlow() {
if (flowBuilder_ == null) {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 2) {
kindCase_ = 0;
kind_ = null;
}
flowBuilder_.clear();
}
return this;
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
public com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder getFlowBuilder() {
return getFlowFieldBuilder().getBuilder();
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder() {
if ((kindCase_ == 2) && (flowBuilder_ != null)) {
return flowBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_;
}
return com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance();
}
}
/**
*
*
*
* Indicates a transition to a
* [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such
* as name and displayname will be set.
*
*
* .google.cloud.dialogflow.cx.v3beta1.Flow flow = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.Flow,
com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder,
com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder>
getFlowFieldBuilder() {
if (flowBuilder_ == null) {
if (!(kindCase_ == 2)) {
kind_ = com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance();
}
flowBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.Flow,
com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder,
com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder>(
(com.google.cloud.dialogflow.cx.v3beta1.Flow) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 2;
onChanged();
return flowBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode)
private static final com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode();
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransitionNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransitionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*
* @return Whether the source field is set.
*/
boolean hasSource();
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*
* @return The source.
*/
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode getSource();
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder
getSourceOrBuilder();
/**
*
*
*
* The index of a transition in the transition list. Starting from 0.
*
*
* int32 index = 4;
*
* @return The index.
*/
int getIndex();
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*
* @return Whether the target field is set.
*/
boolean hasTarget();
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*
* @return The target.
*/
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode getTarget();
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder
getTargetOrBuilder();
/**
*
*
*
* Whether the transition is covered by at least one of the
* agent's test cases.
*
*
* bool covered = 3;
*
* @return The covered.
*/
boolean getCovered();
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*
* @return Whether the transitionRoute field is set.
*/
boolean hasTransitionRoute();
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*
* @return The transitionRoute.
*/
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoute();
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRouteOrBuilder();
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*
* @return Whether the eventHandler field is set.
*/
boolean hasEventHandler();
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*
* @return The eventHandler.
*/
com.google.cloud.dialogflow.cx.v3beta1.EventHandler getEventHandler();
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder getEventHandlerOrBuilder();
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.DetailCase getDetailCase();
}
/**
*
*
*
* A transition in a page.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition}
*/
public static final class Transition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_Transition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_Transition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.class,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder.class);
}
private int bitField0_;
private int detailCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object detail_;
public enum DetailCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TRANSITION_ROUTE(5),
EVENT_HANDLER(6),
DETAIL_NOT_SET(0);
private final int value;
private DetailCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DetailCase valueOf(int value) {
return forNumber(value);
}
public static DetailCase forNumber(int value) {
switch (value) {
case 5:
return TRANSITION_ROUTE;
case 6:
return EVENT_HANDLER;
case 0:
return DETAIL_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public DetailCase getDetailCase() {
return DetailCase.forNumber(detailCase_);
}
public static final int SOURCE_FIELD_NUMBER = 1;
private com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source_;
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*
* @return The source.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode getSource() {
return source_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: source_;
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder
getSourceOrBuilder() {
return source_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: source_;
}
public static final int INDEX_FIELD_NUMBER = 4;
private int index_ = 0;
/**
*
*
*
* The index of a transition in the transition list. Starting from 0.
*
*
* int32 index = 4;
*
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
public static final int TARGET_FIELD_NUMBER = 2;
private com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target_;
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*
* @return The target.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode getTarget() {
return target_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: target_;
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder
getTargetOrBuilder() {
return target_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: target_;
}
public static final int COVERED_FIELD_NUMBER = 3;
private boolean covered_ = false;
/**
*
*
*
* Whether the transition is covered by at least one of the
* agent's test cases.
*
*
* bool covered = 3;
*
* @return The covered.
*/
@java.lang.Override
public boolean getCovered() {
return covered_;
}
public static final int TRANSITION_ROUTE_FIELD_NUMBER = 5;
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*
* @return Whether the transitionRoute field is set.
*/
@java.lang.Override
public boolean hasTransitionRoute() {
return detailCase_ == 5;
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*
* @return The transitionRoute.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoute() {
if (detailCase_ == 5) {
return (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder
getTransitionRouteOrBuilder() {
if (detailCase_ == 5) {
return (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
}
public static final int EVENT_HANDLER_FIELD_NUMBER = 6;
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*
* @return Whether the eventHandler field is set.
*/
@java.lang.Override
public boolean hasEventHandler() {
return detailCase_ == 6;
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*
* @return The eventHandler.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.EventHandler getEventHandler() {
if (detailCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance();
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder getEventHandlerOrBuilder() {
if (detailCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSource());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getTarget());
}
if (covered_ != false) {
output.writeBool(3, covered_);
}
if (index_ != 0) {
output.writeInt32(4, index_);
}
if (detailCase_ == 5) {
output.writeMessage(5, (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_);
}
if (detailCase_ == 6) {
output.writeMessage(6, (com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTarget());
}
if (covered_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, covered_);
}
if (index_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, index_);
}
if (detailCase_ == 5) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_);
}
if (detailCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, (com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition other =
(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource().equals(other.getSource())) return false;
}
if (getIndex() != other.getIndex()) return false;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget().equals(other.getTarget())) return false;
}
if (getCovered() != other.getCovered()) return false;
if (!getDetailCase().equals(other.getDetailCase())) return false;
switch (detailCase_) {
case 5:
if (!getTransitionRoute().equals(other.getTransitionRoute())) return false;
break;
case 6:
if (!getEventHandler().equals(other.getEventHandler())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
hash = (37 * hash) + COVERED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCovered());
switch (detailCase_) {
case 5:
hash = (37 * hash) + TRANSITION_ROUTE_FIELD_NUMBER;
hash = (53 * hash) + getTransitionRoute().hashCode();
break;
case 6:
hash = (37 * hash) + EVENT_HANDLER_FIELD_NUMBER;
hash = (53 * hash) + getEventHandler().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.Transition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.Transition parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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.v3beta1.TransitionCoverage.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 in a page.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition)
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_Transition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_Transition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.class,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder.class);
}
// Construct using
// com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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) {
getSourceFieldBuilder();
getTargetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
source_ = null;
if (sourceBuilder_ != null) {
sourceBuilder_.dispose();
sourceBuilder_ = null;
}
index_ = 0;
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
covered_ = false;
if (transitionRouteBuilder_ != null) {
transitionRouteBuilder_.clear();
}
if (eventHandlerBuilder_ != null) {
eventHandlerBuilder_.clear();
}
detailCase_ = 0;
detail_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_Transition_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition build() {
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition buildPartial() {
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result =
new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.index_ = index_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.covered_ = covered_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result) {
result.detailCase_ = detailCase_;
result.detail_ = this.detail_;
if (detailCase_ == 5 && transitionRouteBuilder_ != null) {
result.detail_ = transitionRouteBuilder_.build();
}
if (detailCase_ == 6 && eventHandlerBuilder_ != null) {
result.detail_ = eventHandlerBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) {
return mergeFrom(
(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition other) {
if (other
== com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
.getDefaultInstance()) return this;
if (other.hasSource()) {
mergeSource(other.getSource());
}
if (other.getIndex() != 0) {
setIndex(other.getIndex());
}
if (other.hasTarget()) {
mergeTarget(other.getTarget());
}
if (other.getCovered() != false) {
setCovered(other.getCovered());
}
switch (other.getDetailCase()) {
case TRANSITION_ROUTE:
{
mergeTransitionRoute(other.getTransitionRoute());
break;
}
case EVENT_HANDLER:
{
mergeEventHandler(other.getEventHandler());
break;
}
case DETAIL_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 18
case 24:
{
covered_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 24
case 32:
{
index_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 32
case 42:
{
input.readMessage(
getTransitionRouteFieldBuilder().getBuilder(), extensionRegistry);
detailCase_ = 5;
break;
} // case 42
case 50:
{
input.readMessage(getEventHandlerFieldBuilder().getBuilder(), extensionRegistry);
detailCase_ = 6;
break;
} // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int detailCase_ = 0;
private java.lang.Object detail_;
public DetailCase getDetailCase() {
return DetailCase.forNumber(detailCase_);
}
public Builder clearDetail() {
detailCase_ = 0;
detail_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder>
sourceBuilder_;
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*
* @return The source.
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode getSource() {
if (sourceBuilder_ == null) {
return source_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: source_;
} else {
return sourceBuilder_.getMessage();
}
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
public Builder setSource(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode value) {
if (sourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
} else {
sourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
public Builder setSource(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder
builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
public Builder mergeSource(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode value) {
if (sourceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& source_ != null
&& source_
!= com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()) {
getSourceBuilder().mergeFrom(value);
} else {
source_ = value;
}
} else {
sourceBuilder_.mergeFrom(value);
}
if (source_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000001);
source_ = null;
if (sourceBuilder_ != null) {
sourceBuilder_.dispose();
sourceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder
getSourceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSourceFieldBuilder().getBuilder();
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder
getSourceOrBuilder() {
if (sourceBuilder_ != null) {
return sourceBuilder_.getMessageOrBuilder();
} else {
return source_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: source_;
}
}
/**
*
*
*
* The start node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source = 1;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder>
getSourceFieldBuilder() {
if (sourceBuilder_ == null) {
sourceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage
.TransitionNodeOrBuilder>(getSource(), getParentForChildren(), isClean());
source_ = null;
}
return sourceBuilder_;
}
private int index_;
/**
*
*
*
* The index of a transition in the transition list. Starting from 0.
*
*
* int32 index = 4;
*
* @return The index.
*/
@java.lang.Override
public int getIndex() {
return index_;
}
/**
*
*
*
* The index of a transition in the transition list. Starting from 0.
*
*
* int32 index = 4;
*
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(int value) {
index_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The index of a transition in the transition list. Starting from 0.
*
*
* int32 index = 4;
*
* @return This builder for chaining.
*/
public Builder clearIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
index_ = 0;
onChanged();
return this;
}
private com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder>
targetBuilder_;
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*
* @return The target.
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode getTarget() {
if (targetBuilder_ == null) {
return target_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
public Builder setTarget(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
} else {
targetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
public Builder setTarget(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder
builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
public Builder mergeTarget(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode value) {
if (targetBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& target_ != null
&& target_
!= com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()) {
getTargetBuilder().mergeFrom(value);
} else {
target_ = value;
}
} else {
targetBuilder_.mergeFrom(value);
}
if (target_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
public Builder clearTarget() {
bitField0_ = (bitField0_ & ~0x00000004);
target_ = null;
if (targetBuilder_ != null) {
targetBuilder_.dispose();
targetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder
getTargetBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder
getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null
? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode
.getDefaultInstance()
: target_;
}
}
/**
*
*
*
* The end node of a transition.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode target = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage
.TransitionNodeOrBuilder>(getTarget(), getParentForChildren(), isClean());
target_ = null;
}
return targetBuilder_;
}
private boolean covered_;
/**
*
*
*
* Whether the transition is covered by at least one of the
* agent's test cases.
*
*
* bool covered = 3;
*
* @return The covered.
*/
@java.lang.Override
public boolean getCovered() {
return covered_;
}
/**
*
*
*
* Whether the transition is covered by at least one of the
* agent's test cases.
*
*
* bool covered = 3;
*
* @param value The covered to set.
* @return This builder for chaining.
*/
public Builder setCovered(boolean value) {
covered_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Whether the transition is covered by at least one of the
* agent's test cases.
*
*
* bool covered = 3;
*
* @return This builder for chaining.
*/
public Builder clearCovered() {
bitField0_ = (bitField0_ & ~0x00000008);
covered_ = false;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute,
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>
transitionRouteBuilder_;
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*
* @return Whether the transitionRoute field is set.
*/
@java.lang.Override
public boolean hasTransitionRoute() {
return detailCase_ == 5;
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*
* @return The transitionRoute.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoute() {
if (transitionRouteBuilder_ == null) {
if (detailCase_ == 5) {
return (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
} else {
if (detailCase_ == 5) {
return transitionRouteBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
}
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
public Builder setTransitionRoute(
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) {
if (transitionRouteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
detail_ = value;
onChanged();
} else {
transitionRouteBuilder_.setMessage(value);
}
detailCase_ = 5;
return this;
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
public Builder setTransitionRoute(
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) {
if (transitionRouteBuilder_ == null) {
detail_ = builderForValue.build();
onChanged();
} else {
transitionRouteBuilder_.setMessage(builderForValue.build());
}
detailCase_ = 5;
return this;
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
public Builder mergeTransitionRoute(
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) {
if (transitionRouteBuilder_ == null) {
if (detailCase_ == 5
&& detail_
!= com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance()) {
detail_ =
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.newBuilder(
(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_)
.mergeFrom(value)
.buildPartial();
} else {
detail_ = value;
}
onChanged();
} else {
if (detailCase_ == 5) {
transitionRouteBuilder_.mergeFrom(value);
} else {
transitionRouteBuilder_.setMessage(value);
}
}
detailCase_ = 5;
return this;
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
public Builder clearTransitionRoute() {
if (transitionRouteBuilder_ == null) {
if (detailCase_ == 5) {
detailCase_ = 0;
detail_ = null;
onChanged();
}
} else {
if (detailCase_ == 5) {
detailCase_ = 0;
detail_ = null;
}
transitionRouteBuilder_.clear();
}
return this;
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder
getTransitionRouteBuilder() {
return getTransitionRouteFieldBuilder().getBuilder();
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder
getTransitionRouteOrBuilder() {
if ((detailCase_ == 5) && (transitionRouteBuilder_ != null)) {
return transitionRouteBuilder_.getMessageOrBuilder();
} else {
if (detailCase_ == 5) {
return (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
}
}
/**
*
*
*
* Intent route or condition route.
*
*
* .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute,
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>
getTransitionRouteFieldBuilder() {
if (transitionRouteBuilder_ == null) {
if (!(detailCase_ == 5)) {
detail_ = com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
}
transitionRouteBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute,
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>(
(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) detail_,
getParentForChildren(),
isClean());
detail_ = null;
}
detailCase_ = 5;
onChanged();
return transitionRouteBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.EventHandler,
com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder,
com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>
eventHandlerBuilder_;
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*
* @return Whether the eventHandler field is set.
*/
@java.lang.Override
public boolean hasEventHandler() {
return detailCase_ == 6;
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*
* @return The eventHandler.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.EventHandler getEventHandler() {
if (eventHandlerBuilder_ == null) {
if (detailCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance();
} else {
if (detailCase_ == 6) {
return eventHandlerBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance();
}
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
public Builder setEventHandler(com.google.cloud.dialogflow.cx.v3beta1.EventHandler value) {
if (eventHandlerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
detail_ = value;
onChanged();
} else {
eventHandlerBuilder_.setMessage(value);
}
detailCase_ = 6;
return this;
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
public Builder setEventHandler(
com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder builderForValue) {
if (eventHandlerBuilder_ == null) {
detail_ = builderForValue.build();
onChanged();
} else {
eventHandlerBuilder_.setMessage(builderForValue.build());
}
detailCase_ = 6;
return this;
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
public Builder mergeEventHandler(com.google.cloud.dialogflow.cx.v3beta1.EventHandler value) {
if (eventHandlerBuilder_ == null) {
if (detailCase_ == 6
&& detail_
!= com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance()) {
detail_ =
com.google.cloud.dialogflow.cx.v3beta1.EventHandler.newBuilder(
(com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_)
.mergeFrom(value)
.buildPartial();
} else {
detail_ = value;
}
onChanged();
} else {
if (detailCase_ == 6) {
eventHandlerBuilder_.mergeFrom(value);
} else {
eventHandlerBuilder_.setMessage(value);
}
}
detailCase_ = 6;
return this;
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
public Builder clearEventHandler() {
if (eventHandlerBuilder_ == null) {
if (detailCase_ == 6) {
detailCase_ = 0;
detail_ = null;
onChanged();
}
} else {
if (detailCase_ == 6) {
detailCase_ = 0;
detail_ = null;
}
eventHandlerBuilder_.clear();
}
return this;
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder getEventHandlerBuilder() {
return getEventHandlerFieldBuilder().getBuilder();
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder
getEventHandlerOrBuilder() {
if ((detailCase_ == 6) && (eventHandlerBuilder_ != null)) {
return eventHandlerBuilder_.getMessageOrBuilder();
} else {
if (detailCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_;
}
return com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance();
}
}
/**
*
*
*
* Event handler.
*
*
* .google.cloud.dialogflow.cx.v3beta1.EventHandler event_handler = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.EventHandler,
com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder,
com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>
getEventHandlerFieldBuilder() {
if (eventHandlerBuilder_ == null) {
if (!(detailCase_ == 6)) {
detail_ = com.google.cloud.dialogflow.cx.v3beta1.EventHandler.getDefaultInstance();
}
eventHandlerBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.EventHandler,
com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder,
com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>(
(com.google.cloud.dialogflow.cx.v3beta1.EventHandler) detail_,
getParentForChildren(),
isClean());
detail_ = null;
}
detailCase_ = 6;
onChanged();
return eventHandlerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition)
private static final com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition();
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int TRANSITIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List
transitions_;
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
@java.lang.Override
public java.util.List
getTransitionsList() {
return transitions_;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder>
getTransitionsOrBuilderList() {
return transitions_;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
@java.lang.Override
public int getTransitionsCount() {
return transitions_.size();
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition getTransitions(
int index) {
return transitions_.get(index);
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder
getTransitionsOrBuilder(int index) {
return transitions_.get(index);
}
public static final int COVERAGE_SCORE_FIELD_NUMBER = 2;
private float coverageScore_ = 0F;
/**
*
*
*
* The percent of transitions in the agent 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 < transitions_.size(); i++) {
output.writeMessage(1, transitions_.get(i));
}
if (java.lang.Float.floatToRawIntBits(coverageScore_) != 0) {
output.writeFloat(2, coverageScore_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < transitions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transitions_.get(i));
}
if (java.lang.Float.floatToRawIntBits(coverageScore_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, coverageScore_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage other =
(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) obj;
if (!getTransitionsList().equals(other.getTransitionsList())) return false;
if (java.lang.Float.floatToIntBits(getCoverageScore())
!= java.lang.Float.floatToIntBits(other.getCoverageScore())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage 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 coverage represents the percentage of all possible page
* transitions (page-level transition routes and event handlers, excluding
* transition route groups) present within any of a parent's test cases.
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionCoverage}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage)
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.class,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Builder.class);
}
// Construct using com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (transitionsBuilder_ == null) {
transitions_ = java.util.Collections.emptyList();
} else {
transitions_ = null;
transitionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
coverageScore_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionCoverage_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage build() {
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage buildPartial() {
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result =
new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result) {
if (transitionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transitions_ = java.util.Collections.unmodifiableList(transitions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transitions_ = transitions_;
} else {
result.transitions_ = transitionsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.coverageScore_ = coverageScore_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) {
return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage other) {
if (other == com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.getDefaultInstance())
return this;
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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition m =
input.readMessage(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
.parser(),
extensionRegistry);
if (transitionsBuilder_ == null) {
ensureTransitionsIsMutable();
transitions_.add(m);
} else {
transitionsBuilder_.addMessage(m);
}
break;
} // case 10
case 21:
{
coverageScore_ = input.readFloat();
bitField0_ |= 0x00000002;
break;
} // case 21
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List
transitions_ = java.util.Collections.emptyList();
private void ensureTransitionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transitions_ =
new java.util.ArrayList<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition>(transitions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder>
transitionsBuilder_;
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public java.util.List
getTransitionsList() {
if (transitionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transitions_);
} else {
return transitionsBuilder_.getMessageList();
}
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public int getTransitionsCount() {
if (transitionsBuilder_ == null) {
return transitions_.size();
} else {
return transitionsBuilder_.getCount();
}
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition getTransitions(
int index) {
if (transitionsBuilder_ == null) {
return transitions_.get(index);
} else {
return transitionsBuilder_.getMessage(index);
}
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder setTransitions(
int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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 Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder setTransitions(
int index,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder
builderForValue) {
if (transitionsBuilder_ == null) {
ensureTransitionsIsMutable();
transitions_.set(index, builderForValue.build());
onChanged();
} else {
transitionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder addTransitions(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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 Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder addTransitions(
int index, com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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 Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder addTransitions(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder
builderForValue) {
if (transitionsBuilder_ == null) {
ensureTransitionsIsMutable();
transitions_.add(builderForValue.build());
onChanged();
} else {
transitionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder addTransitions(
int index,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder
builderForValue) {
if (transitionsBuilder_ == null) {
ensureTransitionsIsMutable();
transitions_.add(index, builderForValue.build());
onChanged();
} else {
transitionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder addAllTransitions(
java.lang.Iterable<
? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition>
values) {
if (transitionsBuilder_ == null) {
ensureTransitionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitions_);
onChanged();
} else {
transitionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder clearTransitions() {
if (transitionsBuilder_ == null) {
transitions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transitionsBuilder_.clear();
}
return this;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public Builder removeTransitions(int index) {
if (transitionsBuilder_ == null) {
ensureTransitionsIsMutable();
transitions_.remove(index);
onChanged();
} else {
transitionsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder
getTransitionsBuilder(int index) {
return getTransitionsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder
getTransitionsOrBuilder(int index) {
if (transitionsBuilder_ == null) {
return transitions_.get(index);
} else {
return transitionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public java.util.List<
? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder>
getTransitionsOrBuilderList() {
if (transitionsBuilder_ != null) {
return transitionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transitions_);
}
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder
addTransitionsBuilder() {
return getTransitionsFieldBuilder()
.addBuilder(
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
.getDefaultInstance());
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder
addTransitionsBuilder(int index) {
return getTransitionsFieldBuilder()
.addBuilder(
index,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition
.getDefaultInstance());
}
/**
*
*
*
* The list of Transitions present in the agent.
*
*
*
* repeated .google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition transitions = 1;
*
*/
public java.util.List<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder>
getTransitionsBuilderList() {
return getTransitionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder>
getTransitionsFieldBuilder() {
if (transitionsBuilder_ == null) {
transitionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.Builder,
com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder>(
transitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
transitions_ = null;
}
return transitionsBuilder_;
}
private float coverageScore_;
/**
*
*
*
* The percent of transitions in the agent that are covered.
*
*
* float coverage_score = 2;
*
* @return The coverageScore.
*/
@java.lang.Override
public float getCoverageScore() {
return coverageScore_;
}
/**
*
*
*
* The percent of transitions in the agent 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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The percent of transitions in the agent that are covered.
*
*
* float coverage_score = 2;
*
* @return This builder for chaining.
*/
public Builder clearCoverageScore() {
bitField0_ = (bitField0_ & ~0x00000002);
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.v3beta1.TransitionCoverage)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.TransitionCoverage)
private static final com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage();
}
public static com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransitionCoverage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}