com.google.cloud.dialogflow.v2.SummarySuggestion 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-v2 Show documentation
Show all versions of proto-google-cloud-dialogflow-v2 Show documentation
PROTO library for proto-google-cloud-dialogflow-v2
/*
* 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/v2/generator.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.v2;
/**
*
*
*
* Suggested summary of the conversation.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SummarySuggestion}
*/
public final class SummarySuggestion extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SummarySuggestion)
SummarySuggestionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SummarySuggestion.newBuilder() to construct.
private SummarySuggestion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SummarySuggestion() {
summarySections_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SummarySuggestion();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.v2.SummarySuggestion.class,
com.google.cloud.dialogflow.v2.SummarySuggestion.Builder.class);
}
public interface SummarySectionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SummarySuggestion.SummarySection)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The section.
*/
java.lang.String getSection();
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for section.
*/
com.google.protobuf.ByteString getSectionBytes();
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The summary.
*/
java.lang.String getSummary();
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for summary.
*/
com.google.protobuf.ByteString getSummaryBytes();
}
/**
*
*
*
* A component of the generated summary.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SummarySuggestion.SummarySection}
*/
public static final class SummarySection extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SummarySuggestion.SummarySection)
SummarySectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SummarySection.newBuilder() to construct.
private SummarySection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SummarySection() {
section_ = "";
summary_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SummarySection();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_SummarySection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_SummarySection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.class,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder.class);
}
public static final int SECTION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object section_ = "";
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The section.
*/
@java.lang.Override
public java.lang.String getSection() {
java.lang.Object ref = section_;
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();
section_ = s;
return s;
}
}
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for section.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSectionBytes() {
java.lang.Object ref = section_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
section_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUMMARY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object summary_ = "";
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The summary.
*/
@java.lang.Override
public java.lang.String getSummary() {
java.lang.Object ref = summary_;
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();
summary_ = s;
return s;
}
}
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for summary.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSummaryBytes() {
java.lang.Object ref = summary_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
summary_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, section_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(section_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, section_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_);
}
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.v2.SummarySuggestion.SummarySection)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection other =
(com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection) obj;
if (!getSection().equals(other.getSection())) return false;
if (!getSummary().equals(other.getSummary())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SECTION_FIELD_NUMBER;
hash = (53 * hash) + getSection().hashCode();
hash = (37 * hash) + SUMMARY_FIELD_NUMBER;
hash = (53 * hash) + getSummary().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection 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.v2.SummarySuggestion.SummarySection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection 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.v2.SummarySuggestion.SummarySection parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection 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.v2.SummarySuggestion.SummarySection
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection
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.v2.SummarySuggestion.SummarySection parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection 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.v2.SummarySuggestion.SummarySection 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 component of the generated summary.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SummarySuggestion.SummarySection}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SummarySuggestion.SummarySection)
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_SummarySection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_SummarySection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.class,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder.class);
}
// Construct using
// com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
section_ = "";
summary_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_SummarySection_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection
getDefaultInstanceForType() {
return com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection build() {
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection buildPartial() {
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection result =
new com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.section_ = section_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.summary_ = summary_;
}
}
@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.v2.SummarySuggestion.SummarySection) {
return mergeFrom((com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection other) {
if (other
== com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.getDefaultInstance())
return this;
if (!other.getSection().isEmpty()) {
section_ = other.section_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSummary().isEmpty()) {
summary_ = other.summary_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
section_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
summary_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object section_ = "";
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The section.
*/
public java.lang.String getSection() {
java.lang.Object ref = section_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
section_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for section.
*/
public com.google.protobuf.ByteString getSectionBytes() {
java.lang.Object ref = section_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
section_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The section to set.
* @return This builder for chaining.
*/
public Builder setSection(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
section_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearSection() {
section_ = getDefaultInstance().getSection();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Required. Name of the section.
*
*
* string section = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for section to set.
* @return This builder for chaining.
*/
public Builder setSectionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
section_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object summary_ = "";
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The summary.
*/
public java.lang.String getSummary() {
java.lang.Object ref = summary_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
summary_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for summary.
*/
public com.google.protobuf.ByteString getSummaryBytes() {
java.lang.Object ref = summary_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
summary_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The summary to set.
* @return This builder for chaining.
*/
public Builder setSummary(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
summary_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearSummary() {
summary_ = getDefaultInstance().getSummary();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Required. Summary text for the section.
*
*
* string summary = 2 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for summary to set.
* @return This builder for chaining.
*/
public Builder setSummaryBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
summary_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SummarySuggestion.SummarySection)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SummarySuggestion.SummarySection)
private static final com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection();
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SummarySection 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.v2.SummarySuggestion.SummarySection
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int SUMMARY_SECTIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List
summarySections_;
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public java.util.List
getSummarySectionsList() {
return summarySections_;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder>
getSummarySectionsOrBuilderList() {
return summarySections_;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public int getSummarySectionsCount() {
return summarySections_.size();
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection getSummarySections(
int index) {
return summarySections_.get(index);
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder
getSummarySectionsOrBuilder(int index) {
return summarySections_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < summarySections_.size(); i++) {
output.writeMessage(1, summarySections_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < summarySections_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, summarySections_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dialogflow.v2.SummarySuggestion)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.v2.SummarySuggestion other =
(com.google.cloud.dialogflow.v2.SummarySuggestion) obj;
if (!getSummarySectionsList().equals(other.getSummarySectionsList())) 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 (getSummarySectionsCount() > 0) {
hash = (37 * hash) + SUMMARY_SECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getSummarySectionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion 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.v2.SummarySuggestion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion 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.v2.SummarySuggestion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion 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.v2.SummarySuggestion parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion 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.v2.SummarySuggestion parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion 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.v2.SummarySuggestion 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;
}
/**
*
*
*
* Suggested summary of the conversation.
*
*
* Protobuf type {@code google.cloud.dialogflow.v2.SummarySuggestion}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SummarySuggestion)
com.google.cloud.dialogflow.v2.SummarySuggestionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.v2.SummarySuggestion.class,
com.google.cloud.dialogflow.v2.SummarySuggestion.Builder.class);
}
// Construct using com.google.cloud.dialogflow.v2.SummarySuggestion.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (summarySectionsBuilder_ == null) {
summarySections_ = java.util.Collections.emptyList();
} else {
summarySections_ = null;
summarySectionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.v2.GeneratorProto
.internal_static_google_cloud_dialogflow_v2_SummarySuggestion_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion getDefaultInstanceForType() {
return com.google.cloud.dialogflow.v2.SummarySuggestion.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion build() {
com.google.cloud.dialogflow.v2.SummarySuggestion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.v2.SummarySuggestion buildPartial() {
com.google.cloud.dialogflow.v2.SummarySuggestion result =
new com.google.cloud.dialogflow.v2.SummarySuggestion(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dialogflow.v2.SummarySuggestion result) {
if (summarySectionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
summarySections_ = java.util.Collections.unmodifiableList(summarySections_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.summarySections_ = summarySections_;
} else {
result.summarySections_ = summarySectionsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.dialogflow.v2.SummarySuggestion result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dialogflow.v2.SummarySuggestion) {
return mergeFrom((com.google.cloud.dialogflow.v2.SummarySuggestion) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dialogflow.v2.SummarySuggestion other) {
if (other == com.google.cloud.dialogflow.v2.SummarySuggestion.getDefaultInstance())
return this;
if (summarySectionsBuilder_ == null) {
if (!other.summarySections_.isEmpty()) {
if (summarySections_.isEmpty()) {
summarySections_ = other.summarySections_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSummarySectionsIsMutable();
summarySections_.addAll(other.summarySections_);
}
onChanged();
}
} else {
if (!other.summarySections_.isEmpty()) {
if (summarySectionsBuilder_.isEmpty()) {
summarySectionsBuilder_.dispose();
summarySectionsBuilder_ = null;
summarySections_ = other.summarySections_;
bitField0_ = (bitField0_ & ~0x00000001);
summarySectionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getSummarySectionsFieldBuilder()
: null;
} else {
summarySectionsBuilder_.addAllMessages(other.summarySections_);
}
}
}
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.v2.SummarySuggestion.SummarySection m =
input.readMessage(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.parser(),
extensionRegistry);
if (summarySectionsBuilder_ == null) {
ensureSummarySectionsIsMutable();
summarySections_.add(m);
} else {
summarySectionsBuilder_.addMessage(m);
}
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List
summarySections_ = java.util.Collections.emptyList();
private void ensureSummarySectionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
summarySections_ =
new java.util.ArrayList<
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection>(summarySections_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder>
summarySectionsBuilder_;
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List
getSummarySectionsList() {
if (summarySectionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(summarySections_);
} else {
return summarySectionsBuilder_.getMessageList();
}
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public int getSummarySectionsCount() {
if (summarySectionsBuilder_ == null) {
return summarySections_.size();
} else {
return summarySectionsBuilder_.getCount();
}
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection getSummarySections(
int index) {
if (summarySectionsBuilder_ == null) {
return summarySections_.get(index);
} else {
return summarySectionsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setSummarySections(
int index, com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection value) {
if (summarySectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSummarySectionsIsMutable();
summarySections_.set(index, value);
onChanged();
} else {
summarySectionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setSummarySections(
int index,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder builderForValue) {
if (summarySectionsBuilder_ == null) {
ensureSummarySectionsIsMutable();
summarySections_.set(index, builderForValue.build());
onChanged();
} else {
summarySectionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addSummarySections(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection value) {
if (summarySectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSummarySectionsIsMutable();
summarySections_.add(value);
onChanged();
} else {
summarySectionsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addSummarySections(
int index, com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection value) {
if (summarySectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSummarySectionsIsMutable();
summarySections_.add(index, value);
onChanged();
} else {
summarySectionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addSummarySections(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder builderForValue) {
if (summarySectionsBuilder_ == null) {
ensureSummarySectionsIsMutable();
summarySections_.add(builderForValue.build());
onChanged();
} else {
summarySectionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addSummarySections(
int index,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder builderForValue) {
if (summarySectionsBuilder_ == null) {
ensureSummarySectionsIsMutable();
summarySections_.add(index, builderForValue.build());
onChanged();
} else {
summarySectionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addAllSummarySections(
java.lang.Iterable<
? extends com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection>
values) {
if (summarySectionsBuilder_ == null) {
ensureSummarySectionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, summarySections_);
onChanged();
} else {
summarySectionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearSummarySections() {
if (summarySectionsBuilder_ == null) {
summarySections_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
summarySectionsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder removeSummarySections(int index) {
if (summarySectionsBuilder_ == null) {
ensureSummarySectionsIsMutable();
summarySections_.remove(index);
onChanged();
} else {
summarySectionsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder
getSummarySectionsBuilder(int index) {
return getSummarySectionsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder
getSummarySectionsOrBuilder(int index) {
if (summarySectionsBuilder_ == null) {
return summarySections_.get(index);
} else {
return summarySectionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List<
? extends com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder>
getSummarySectionsOrBuilderList() {
if (summarySectionsBuilder_ != null) {
return summarySectionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(summarySections_);
}
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder
addSummarySectionsBuilder() {
return getSummarySectionsFieldBuilder()
.addBuilder(
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.getDefaultInstance());
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder
addSummarySectionsBuilder(int index) {
return getSummarySectionsFieldBuilder()
.addBuilder(
index,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.getDefaultInstance());
}
/**
*
*
*
* Required. All the parts of generated summary.
*
*
*
* repeated .google.cloud.dialogflow.v2.SummarySuggestion.SummarySection summary_sections = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List
getSummarySectionsBuilderList() {
return getSummarySectionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder>
getSummarySectionsFieldBuilder() {
if (summarySectionsBuilder_ == null) {
summarySectionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySection.Builder,
com.google.cloud.dialogflow.v2.SummarySuggestion.SummarySectionOrBuilder>(
summarySections_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
summarySections_ = null;
}
return summarySectionsBuilder_;
}
@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.v2.SummarySuggestion)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SummarySuggestion)
private static final com.google.cloud.dialogflow.v2.SummarySuggestion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SummarySuggestion();
}
public static com.google.cloud.dialogflow.v2.SummarySuggestion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SummarySuggestion 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.v2.SummarySuggestion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy