com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse 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-v3 Show documentation
Show all versions of proto-google-cloud-dialogflow-cx-v3 Show documentation
PROTO library for proto-google-cloud-dialogflow-cx-v3
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3/test_case.proto
package com.google.cloud.dialogflow.cx.v3;
/**
*
*
*
* The response message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.CalculateCoverageResponse}
*/
public final class CalculateCoverageResponse extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.CalculateCoverageResponse)
CalculateCoverageResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CalculateCoverageResponse.newBuilder() to construct.
private CalculateCoverageResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CalculateCoverageResponse() {
agent_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CalculateCoverageResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private CalculateCoverageResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18:
{
com.google.cloud.dialogflow.cx.v3.IntentCoverage.Builder subBuilder = null;
if (coverageTypeCase_ == 2) {
subBuilder =
((com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_).toBuilder();
}
coverageType_ =
input.readMessage(
com.google.cloud.dialogflow.cx.v3.IntentCoverage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
(com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_);
coverageType_ = subBuilder.buildPartial();
}
coverageTypeCase_ = 2;
break;
}
case 34:
{
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Builder subBuilder = null;
if (coverageTypeCase_ == 4) {
subBuilder =
((com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_)
.toBuilder();
}
coverageType_ =
input.readMessage(
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
(com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_);
coverageType_ = subBuilder.buildPartial();
}
coverageTypeCase_ = 4;
break;
}
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
agent_ = s;
break;
}
case 50:
{
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder subBuilder =
null;
if (coverageTypeCase_ == 6) {
subBuilder =
((com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_)
.toBuilder();
}
coverageType_ =
input.readMessage(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_);
coverageType_ = subBuilder.buildPartial();
}
coverageTypeCase_ = 6;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3_CalculateCoverageResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3_CalculateCoverageResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.class,
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.Builder.class);
}
private int coverageTypeCase_ = 0;
private java.lang.Object coverageType_;
public enum CoverageTypeCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INTENT_COVERAGE(2),
TRANSITION_COVERAGE(4),
ROUTE_GROUP_COVERAGE(6),
COVERAGETYPE_NOT_SET(0);
private final int value;
private CoverageTypeCase(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 CoverageTypeCase valueOf(int value) {
return forNumber(value);
}
public static CoverageTypeCase forNumber(int value) {
switch (value) {
case 2:
return INTENT_COVERAGE;
case 4:
return TRANSITION_COVERAGE;
case 6:
return ROUTE_GROUP_COVERAGE;
case 0:
return COVERAGETYPE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public CoverageTypeCase getCoverageTypeCase() {
return CoverageTypeCase.forNumber(coverageTypeCase_);
}
public static final int AGENT_FIELD_NUMBER = 5;
private volatile java.lang.Object agent_;
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @return The agent.
*/
@java.lang.Override
public java.lang.String getAgent() {
java.lang.Object ref = agent_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
agent_ = s;
return s;
}
}
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for agent.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAgentBytes() {
java.lang.Object ref = agent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
agent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INTENT_COVERAGE_FIELD_NUMBER = 2;
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*
* @return Whether the intentCoverage field is set.
*/
@java.lang.Override
public boolean hasIntentCoverage() {
return coverageTypeCase_ == 2;
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*
* @return The intentCoverage.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentCoverage getIntentCoverage() {
if (coverageTypeCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance();
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentCoverageOrBuilder getIntentCoverageOrBuilder() {
if (coverageTypeCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance();
}
public static final int TRANSITION_COVERAGE_FIELD_NUMBER = 4;
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*
* @return Whether the transitionCoverage field is set.
*/
@java.lang.Override
public boolean hasTransitionCoverage() {
return coverageTypeCase_ == 4;
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*
* @return The transitionCoverage.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage getTransitionCoverage() {
if (coverageTypeCase_ == 4) {
return (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance();
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionCoverageOrBuilder
getTransitionCoverageOrBuilder() {
if (coverageTypeCase_ == 4) {
return (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance();
}
public static final int ROUTE_GROUP_COVERAGE_FIELD_NUMBER = 6;
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*
* @return Whether the routeGroupCoverage field is set.
*/
@java.lang.Override
public boolean hasRouteGroupCoverage() {
return coverageTypeCase_ == 6;
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*
* @return The routeGroupCoverage.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage getRouteGroupCoverage() {
if (coverageTypeCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance();
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageOrBuilder
getRouteGroupCoverageOrBuilder() {
if (coverageTypeCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.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 (coverageTypeCase_ == 2) {
output.writeMessage(2, (com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_);
}
if (coverageTypeCase_ == 4) {
output.writeMessage(4, (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_);
}
if (!getAgentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, agent_);
}
if (coverageTypeCase_ == 6) {
output.writeMessage(
6, (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (coverageTypeCase_ == 2) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_);
}
if (coverageTypeCase_ == 4) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_);
}
if (!getAgentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, agent_);
}
if (coverageTypeCase_ == 6) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
6, (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse other =
(com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) obj;
if (!getAgent().equals(other.getAgent())) return false;
if (!getCoverageTypeCase().equals(other.getCoverageTypeCase())) return false;
switch (coverageTypeCase_) {
case 2:
if (!getIntentCoverage().equals(other.getIntentCoverage())) return false;
break;
case 4:
if (!getTransitionCoverage().equals(other.getTransitionCoverage())) return false;
break;
case 6:
if (!getRouteGroupCoverage().equals(other.getRouteGroupCoverage())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AGENT_FIELD_NUMBER;
hash = (53 * hash) + getAgent().hashCode();
switch (coverageTypeCase_) {
case 2:
hash = (37 * hash) + INTENT_COVERAGE_FIELD_NUMBER;
hash = (53 * hash) + getIntentCoverage().hashCode();
break;
case 4:
hash = (37 * hash) + TRANSITION_COVERAGE_FIELD_NUMBER;
hash = (53 * hash) + getTransitionCoverage().hashCode();
break;
case 6:
hash = (37 * hash) + ROUTE_GROUP_COVERAGE_FIELD_NUMBER;
hash = (53 * hash) + getRouteGroupCoverage().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse 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 response message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3.CalculateCoverageResponse}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.CalculateCoverageResponse)
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3_CalculateCoverageResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3_CalculateCoverageResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.class,
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.Builder.class);
}
// Construct using com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
agent_ = "";
coverageTypeCase_ = 0;
coverageType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3.TestCaseProto
.internal_static_google_cloud_dialogflow_cx_v3_CalculateCoverageResponse_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse build() {
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse result =
new com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(this);
result.agent_ = agent_;
if (coverageTypeCase_ == 2) {
if (intentCoverageBuilder_ == null) {
result.coverageType_ = coverageType_;
} else {
result.coverageType_ = intentCoverageBuilder_.build();
}
}
if (coverageTypeCase_ == 4) {
if (transitionCoverageBuilder_ == null) {
result.coverageType_ = coverageType_;
} else {
result.coverageType_ = transitionCoverageBuilder_.build();
}
}
if (coverageTypeCase_ == 6) {
if (routeGroupCoverageBuilder_ == null) {
result.coverageType_ = coverageType_;
} else {
result.coverageType_ = routeGroupCoverageBuilder_.build();
}
}
result.coverageTypeCase_ = coverageTypeCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) {
return mergeFrom((com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse other) {
if (other == com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.getDefaultInstance())
return this;
if (!other.getAgent().isEmpty()) {
agent_ = other.agent_;
onChanged();
}
switch (other.getCoverageTypeCase()) {
case INTENT_COVERAGE:
{
mergeIntentCoverage(other.getIntentCoverage());
break;
}
case TRANSITION_COVERAGE:
{
mergeTransitionCoverage(other.getTransitionCoverage());
break;
}
case ROUTE_GROUP_COVERAGE:
{
mergeRouteGroupCoverage(other.getRouteGroupCoverage());
break;
}
case COVERAGETYPE_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int coverageTypeCase_ = 0;
private java.lang.Object coverageType_;
public CoverageTypeCase getCoverageTypeCase() {
return CoverageTypeCase.forNumber(coverageTypeCase_);
}
public Builder clearCoverageType() {
coverageTypeCase_ = 0;
coverageType_ = null;
onChanged();
return this;
}
private java.lang.Object agent_ = "";
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @return The agent.
*/
public java.lang.String getAgent() {
java.lang.Object ref = agent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
agent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @return The bytes for agent.
*/
public com.google.protobuf.ByteString getAgentBytes() {
java.lang.Object ref = agent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
agent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @param value The agent to set.
* @return This builder for chaining.
*/
public Builder setAgent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
agent_ = value;
onChanged();
return this;
}
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @return This builder for chaining.
*/
public Builder clearAgent() {
agent_ = getDefaultInstance().getAgent();
onChanged();
return this;
}
/**
*
*
*
* The agent to calculate coverage for.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
*
*
* string agent = 5 [(.google.api.resource_reference) = { ... }
*
* @param value The bytes for agent to set.
* @return This builder for chaining.
*/
public Builder setAgentBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
agent_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.IntentCoverage,
com.google.cloud.dialogflow.cx.v3.IntentCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.IntentCoverageOrBuilder>
intentCoverageBuilder_;
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*
* @return Whether the intentCoverage field is set.
*/
@java.lang.Override
public boolean hasIntentCoverage() {
return coverageTypeCase_ == 2;
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*
* @return The intentCoverage.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentCoverage getIntentCoverage() {
if (intentCoverageBuilder_ == null) {
if (coverageTypeCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance();
} else {
if (coverageTypeCase_ == 2) {
return intentCoverageBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance();
}
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
public Builder setIntentCoverage(com.google.cloud.dialogflow.cx.v3.IntentCoverage value) {
if (intentCoverageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
coverageType_ = value;
onChanged();
} else {
intentCoverageBuilder_.setMessage(value);
}
coverageTypeCase_ = 2;
return this;
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
public Builder setIntentCoverage(
com.google.cloud.dialogflow.cx.v3.IntentCoverage.Builder builderForValue) {
if (intentCoverageBuilder_ == null) {
coverageType_ = builderForValue.build();
onChanged();
} else {
intentCoverageBuilder_.setMessage(builderForValue.build());
}
coverageTypeCase_ = 2;
return this;
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
public Builder mergeIntentCoverage(com.google.cloud.dialogflow.cx.v3.IntentCoverage value) {
if (intentCoverageBuilder_ == null) {
if (coverageTypeCase_ == 2
&& coverageType_
!= com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance()) {
coverageType_ =
com.google.cloud.dialogflow.cx.v3.IntentCoverage.newBuilder(
(com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_)
.mergeFrom(value)
.buildPartial();
} else {
coverageType_ = value;
}
onChanged();
} else {
if (coverageTypeCase_ == 2) {
intentCoverageBuilder_.mergeFrom(value);
}
intentCoverageBuilder_.setMessage(value);
}
coverageTypeCase_ = 2;
return this;
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
public Builder clearIntentCoverage() {
if (intentCoverageBuilder_ == null) {
if (coverageTypeCase_ == 2) {
coverageTypeCase_ = 0;
coverageType_ = null;
onChanged();
}
} else {
if (coverageTypeCase_ == 2) {
coverageTypeCase_ = 0;
coverageType_ = null;
}
intentCoverageBuilder_.clear();
}
return this;
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Builder getIntentCoverageBuilder() {
return getIntentCoverageFieldBuilder().getBuilder();
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.IntentCoverageOrBuilder getIntentCoverageOrBuilder() {
if ((coverageTypeCase_ == 2) && (intentCoverageBuilder_ != null)) {
return intentCoverageBuilder_.getMessageOrBuilder();
} else {
if (coverageTypeCase_ == 2) {
return (com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance();
}
}
/**
*
*
*
* Intent coverage.
*
*
* .google.cloud.dialogflow.cx.v3.IntentCoverage intent_coverage = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.IntentCoverage,
com.google.cloud.dialogflow.cx.v3.IntentCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.IntentCoverageOrBuilder>
getIntentCoverageFieldBuilder() {
if (intentCoverageBuilder_ == null) {
if (!(coverageTypeCase_ == 2)) {
coverageType_ = com.google.cloud.dialogflow.cx.v3.IntentCoverage.getDefaultInstance();
}
intentCoverageBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.IntentCoverage,
com.google.cloud.dialogflow.cx.v3.IntentCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.IntentCoverageOrBuilder>(
(com.google.cloud.dialogflow.cx.v3.IntentCoverage) coverageType_,
getParentForChildren(),
isClean());
coverageType_ = null;
}
coverageTypeCase_ = 2;
onChanged();
;
return intentCoverageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionCoverage,
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionCoverageOrBuilder>
transitionCoverageBuilder_;
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*
* @return Whether the transitionCoverage field is set.
*/
@java.lang.Override
public boolean hasTransitionCoverage() {
return coverageTypeCase_ == 4;
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*
* @return The transitionCoverage.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage getTransitionCoverage() {
if (transitionCoverageBuilder_ == null) {
if (coverageTypeCase_ == 4) {
return (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance();
} else {
if (coverageTypeCase_ == 4) {
return transitionCoverageBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance();
}
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
public Builder setTransitionCoverage(
com.google.cloud.dialogflow.cx.v3.TransitionCoverage value) {
if (transitionCoverageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
coverageType_ = value;
onChanged();
} else {
transitionCoverageBuilder_.setMessage(value);
}
coverageTypeCase_ = 4;
return this;
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
public Builder setTransitionCoverage(
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Builder builderForValue) {
if (transitionCoverageBuilder_ == null) {
coverageType_ = builderForValue.build();
onChanged();
} else {
transitionCoverageBuilder_.setMessage(builderForValue.build());
}
coverageTypeCase_ = 4;
return this;
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
public Builder mergeTransitionCoverage(
com.google.cloud.dialogflow.cx.v3.TransitionCoverage value) {
if (transitionCoverageBuilder_ == null) {
if (coverageTypeCase_ == 4
&& coverageType_
!= com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance()) {
coverageType_ =
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.newBuilder(
(com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_)
.mergeFrom(value)
.buildPartial();
} else {
coverageType_ = value;
}
onChanged();
} else {
if (coverageTypeCase_ == 4) {
transitionCoverageBuilder_.mergeFrom(value);
}
transitionCoverageBuilder_.setMessage(value);
}
coverageTypeCase_ = 4;
return this;
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
public Builder clearTransitionCoverage() {
if (transitionCoverageBuilder_ == null) {
if (coverageTypeCase_ == 4) {
coverageTypeCase_ = 0;
coverageType_ = null;
onChanged();
}
} else {
if (coverageTypeCase_ == 4) {
coverageTypeCase_ = 0;
coverageType_ = null;
}
transitionCoverageBuilder_.clear();
}
return this;
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Builder
getTransitionCoverageBuilder() {
return getTransitionCoverageFieldBuilder().getBuilder();
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionCoverageOrBuilder
getTransitionCoverageOrBuilder() {
if ((coverageTypeCase_ == 4) && (transitionCoverageBuilder_ != null)) {
return transitionCoverageBuilder_.getMessageOrBuilder();
} else {
if (coverageTypeCase_ == 4) {
return (com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance();
}
}
/**
*
*
*
* Transition (excluding transition route groups) coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionCoverage transition_coverage = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionCoverage,
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionCoverageOrBuilder>
getTransitionCoverageFieldBuilder() {
if (transitionCoverageBuilder_ == null) {
if (!(coverageTypeCase_ == 4)) {
coverageType_ = com.google.cloud.dialogflow.cx.v3.TransitionCoverage.getDefaultInstance();
}
transitionCoverageBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionCoverage,
com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionCoverageOrBuilder>(
(com.google.cloud.dialogflow.cx.v3.TransitionCoverage) coverageType_,
getParentForChildren(),
isClean());
coverageType_ = null;
}
coverageTypeCase_ = 4;
onChanged();
;
return transitionCoverageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage,
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageOrBuilder>
routeGroupCoverageBuilder_;
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*
* @return Whether the routeGroupCoverage field is set.
*/
@java.lang.Override
public boolean hasRouteGroupCoverage() {
return coverageTypeCase_ == 6;
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*
* @return The routeGroupCoverage.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage getRouteGroupCoverage() {
if (routeGroupCoverageBuilder_ == null) {
if (coverageTypeCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance();
} else {
if (coverageTypeCase_ == 6) {
return routeGroupCoverageBuilder_.getMessage();
}
return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance();
}
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
public Builder setRouteGroupCoverage(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage value) {
if (routeGroupCoverageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
coverageType_ = value;
onChanged();
} else {
routeGroupCoverageBuilder_.setMessage(value);
}
coverageTypeCase_ = 6;
return this;
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
public Builder setRouteGroupCoverage(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder builderForValue) {
if (routeGroupCoverageBuilder_ == null) {
coverageType_ = builderForValue.build();
onChanged();
} else {
routeGroupCoverageBuilder_.setMessage(builderForValue.build());
}
coverageTypeCase_ = 6;
return this;
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
public Builder mergeRouteGroupCoverage(
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage value) {
if (routeGroupCoverageBuilder_ == null) {
if (coverageTypeCase_ == 6
&& coverageType_
!= com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage
.getDefaultInstance()) {
coverageType_ =
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.newBuilder(
(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage)
coverageType_)
.mergeFrom(value)
.buildPartial();
} else {
coverageType_ = value;
}
onChanged();
} else {
if (coverageTypeCase_ == 6) {
routeGroupCoverageBuilder_.mergeFrom(value);
}
routeGroupCoverageBuilder_.setMessage(value);
}
coverageTypeCase_ = 6;
return this;
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
public Builder clearRouteGroupCoverage() {
if (routeGroupCoverageBuilder_ == null) {
if (coverageTypeCase_ == 6) {
coverageTypeCase_ = 0;
coverageType_ = null;
onChanged();
}
} else {
if (coverageTypeCase_ == 6) {
coverageTypeCase_ = 0;
coverageType_ = null;
}
routeGroupCoverageBuilder_.clear();
}
return this;
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder
getRouteGroupCoverageBuilder() {
return getRouteGroupCoverageFieldBuilder().getBuilder();
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageOrBuilder
getRouteGroupCoverageOrBuilder() {
if ((coverageTypeCase_ == 6) && (routeGroupCoverageBuilder_ != null)) {
return routeGroupCoverageBuilder_.getMessageOrBuilder();
} else {
if (coverageTypeCase_ == 6) {
return (com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_;
}
return com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance();
}
}
/**
*
*
*
* Transition route group coverage.
*
*
* .google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage route_group_coverage = 6;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage,
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageOrBuilder>
getRouteGroupCoverageFieldBuilder() {
if (routeGroupCoverageBuilder_ == null) {
if (!(coverageTypeCase_ == 6)) {
coverageType_ =
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.getDefaultInstance();
}
routeGroupCoverageBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage,
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Builder,
com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverageOrBuilder>(
(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) coverageType_,
getParentForChildren(),
isClean());
coverageType_ = null;
}
coverageTypeCase_ = 6;
onChanged();
;
return routeGroupCoverageBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.CalculateCoverageResponse)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.CalculateCoverageResponse)
private static final com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse();
}
public static com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CalculateCoverageResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CalculateCoverageResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy