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

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

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

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

/**
 *
 *
 * 
 * Search configuration for UCS search queries.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.SearchConfig} */ public final class SearchConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.SearchConfig) SearchConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SearchConfig.newBuilder() to construct. private SearchConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchConfig() { boostSpecs_ = java.util.Collections.emptyList(); filterSpecs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_SearchConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_SearchConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.class, com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder.class); } public static final int BOOST_SPECS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List boostSpecs_; /** * * *
   * Optional. Boosting configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getBoostSpecsList() { return boostSpecs_; } /** * * *
   * Optional. Boosting configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getBoostSpecsOrBuilderList() { return boostSpecs_; } /** * * *
   * Optional. Boosting configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public int getBoostSpecsCount() { return boostSpecs_.size(); } /** * * *
   * Optional. Boosting configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs getBoostSpecs(int index) { return boostSpecs_.get(index); } /** * * *
   * Optional. Boosting configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecsOrBuilder getBoostSpecsOrBuilder( int index) { return boostSpecs_.get(index); } public static final int FILTER_SPECS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List filterSpecs_; /** * * *
   * Optional. Filter configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getFilterSpecsList() { return filterSpecs_; } /** * * *
   * Optional. Filter configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getFilterSpecsOrBuilderList() { return filterSpecs_; } /** * * *
   * Optional. Filter configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public int getFilterSpecsCount() { return filterSpecs_.size(); } /** * * *
   * Optional. Filter configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs getFilterSpecs(int index) { return filterSpecs_.get(index); } /** * * *
   * Optional. Filter configuration for the datastores.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecsOrBuilder getFilterSpecsOrBuilder( int index) { return filterSpecs_.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 < boostSpecs_.size(); i++) { output.writeMessage(1, boostSpecs_.get(i)); } for (int i = 0; i < filterSpecs_.size(); i++) { output.writeMessage(2, filterSpecs_.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 < boostSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, boostSpecs_.get(i)); } for (int i = 0; i < filterSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, filterSpecs_.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.cx.v3beta1.SearchConfig)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.SearchConfig other = (com.google.cloud.dialogflow.cx.v3beta1.SearchConfig) obj; if (!getBoostSpecsList().equals(other.getBoostSpecsList())) return false; if (!getFilterSpecsList().equals(other.getFilterSpecsList())) 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 (getBoostSpecsCount() > 0) { hash = (37 * hash) + BOOST_SPECS_FIELD_NUMBER; hash = (53 * hash) + getBoostSpecsList().hashCode(); } if (getFilterSpecsCount() > 0) { hash = (37 * hash) + FILTER_SPECS_FIELD_NUMBER; hash = (53 * hash) + getFilterSpecsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3beta1.SearchConfig 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; } /** * * *
   * Search configuration for UCS search queries.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.SearchConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.SearchConfig) com.google.cloud.dialogflow.cx.v3beta1.SearchConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_SearchConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_SearchConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.class, com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (boostSpecsBuilder_ == null) { boostSpecs_ = java.util.Collections.emptyList(); } else { boostSpecs_ = null; boostSpecsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (filterSpecsBuilder_ == null) { filterSpecs_ = java.util.Collections.emptyList(); } else { filterSpecs_ = null; filterSpecsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.SessionProto .internal_static_google_cloud_dialogflow_cx_v3beta1_SearchConfig_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig build() { com.google.cloud.dialogflow.cx.v3beta1.SearchConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SearchConfig result = new com.google.cloud.dialogflow.cx.v3beta1.SearchConfig(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3beta1.SearchConfig result) { if (boostSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { boostSpecs_ = java.util.Collections.unmodifiableList(boostSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.boostSpecs_ = boostSpecs_; } else { result.boostSpecs_ = boostSpecsBuilder_.build(); } if (filterSpecsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { filterSpecs_ = java.util.Collections.unmodifiableList(filterSpecs_); bitField0_ = (bitField0_ & ~0x00000002); } result.filterSpecs_ = filterSpecs_; } else { result.filterSpecs_ = filterSpecsBuilder_.build(); } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.SearchConfig 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.cx.v3beta1.SearchConfig) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.SearchConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SearchConfig other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.SearchConfig.getDefaultInstance()) return this; if (boostSpecsBuilder_ == null) { if (!other.boostSpecs_.isEmpty()) { if (boostSpecs_.isEmpty()) { boostSpecs_ = other.boostSpecs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBoostSpecsIsMutable(); boostSpecs_.addAll(other.boostSpecs_); } onChanged(); } } else { if (!other.boostSpecs_.isEmpty()) { if (boostSpecsBuilder_.isEmpty()) { boostSpecsBuilder_.dispose(); boostSpecsBuilder_ = null; boostSpecs_ = other.boostSpecs_; bitField0_ = (bitField0_ & ~0x00000001); boostSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBoostSpecsFieldBuilder() : null; } else { boostSpecsBuilder_.addAllMessages(other.boostSpecs_); } } } if (filterSpecsBuilder_ == null) { if (!other.filterSpecs_.isEmpty()) { if (filterSpecs_.isEmpty()) { filterSpecs_ = other.filterSpecs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFilterSpecsIsMutable(); filterSpecs_.addAll(other.filterSpecs_); } onChanged(); } } else { if (!other.filterSpecs_.isEmpty()) { if (filterSpecsBuilder_.isEmpty()) { filterSpecsBuilder_.dispose(); filterSpecsBuilder_ = null; filterSpecs_ = other.filterSpecs_; bitField0_ = (bitField0_ & ~0x00000002); filterSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilterSpecsFieldBuilder() : null; } else { filterSpecsBuilder_.addAllMessages(other.filterSpecs_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.parser(), extensionRegistry); if (boostSpecsBuilder_ == null) { ensureBoostSpecsIsMutable(); boostSpecs_.add(m); } else { boostSpecsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs m = input.readMessage( com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.parser(), extensionRegistry); if (filterSpecsBuilder_ == null) { ensureFilterSpecsIsMutable(); filterSpecs_.add(m); } else { filterSpecsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List boostSpecs_ = java.util.Collections.emptyList(); private void ensureBoostSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { boostSpecs_ = new java.util.ArrayList(boostSpecs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecsOrBuilder> boostSpecsBuilder_; /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getBoostSpecsList() { if (boostSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(boostSpecs_); } else { return boostSpecsBuilder_.getMessageList(); } } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getBoostSpecsCount() { if (boostSpecsBuilder_ == null) { return boostSpecs_.size(); } else { return boostSpecsBuilder_.getCount(); } } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs getBoostSpecs(int index) { if (boostSpecsBuilder_ == null) { return boostSpecs_.get(index); } else { return boostSpecsBuilder_.getMessage(index); } } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setBoostSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs value) { if (boostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoostSpecsIsMutable(); boostSpecs_.set(index, value); onChanged(); } else { boostSpecsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setBoostSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder builderForValue) { if (boostSpecsBuilder_ == null) { ensureBoostSpecsIsMutable(); boostSpecs_.set(index, builderForValue.build()); onChanged(); } else { boostSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addBoostSpecs(com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs value) { if (boostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoostSpecsIsMutable(); boostSpecs_.add(value); onChanged(); } else { boostSpecsBuilder_.addMessage(value); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addBoostSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs value) { if (boostSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoostSpecsIsMutable(); boostSpecs_.add(index, value); onChanged(); } else { boostSpecsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addBoostSpecs( com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder builderForValue) { if (boostSpecsBuilder_ == null) { ensureBoostSpecsIsMutable(); boostSpecs_.add(builderForValue.build()); onChanged(); } else { boostSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addBoostSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder builderForValue) { if (boostSpecsBuilder_ == null) { ensureBoostSpecsIsMutable(); boostSpecs_.add(index, builderForValue.build()); onChanged(); } else { boostSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllBoostSpecs( java.lang.Iterable values) { if (boostSpecsBuilder_ == null) { ensureBoostSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boostSpecs_); onChanged(); } else { boostSpecsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearBoostSpecs() { if (boostSpecsBuilder_ == null) { boostSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { boostSpecsBuilder_.clear(); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeBoostSpecs(int index) { if (boostSpecsBuilder_ == null) { ensureBoostSpecsIsMutable(); boostSpecs_.remove(index); onChanged(); } else { boostSpecsBuilder_.remove(index); } return this; } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder getBoostSpecsBuilder( int index) { return getBoostSpecsFieldBuilder().getBuilder(index); } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecsOrBuilder getBoostSpecsOrBuilder( int index) { if (boostSpecsBuilder_ == null) { return boostSpecs_.get(index); } else { return boostSpecsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getBoostSpecsOrBuilderList() { if (boostSpecsBuilder_ != null) { return boostSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boostSpecs_); } } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder addBoostSpecsBuilder() { return getBoostSpecsFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.getDefaultInstance()); } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder addBoostSpecsBuilder( int index) { return getBoostSpecsFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.getDefaultInstance()); } /** * * *
     * Optional. Boosting configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getBoostSpecsBuilderList() { return getBoostSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecsOrBuilder> getBoostSpecsFieldBuilder() { if (boostSpecsBuilder_ == null) { boostSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecs.Builder, com.google.cloud.dialogflow.cx.v3beta1.BoostSpecsOrBuilder>( boostSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); boostSpecs_ = null; } return boostSpecsBuilder_; } private java.util.List filterSpecs_ = java.util.Collections.emptyList(); private void ensureFilterSpecsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { filterSpecs_ = new java.util.ArrayList( filterSpecs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecsOrBuilder> filterSpecsBuilder_; /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getFilterSpecsList() { if (filterSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(filterSpecs_); } else { return filterSpecsBuilder_.getMessageList(); } } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getFilterSpecsCount() { if (filterSpecsBuilder_ == null) { return filterSpecs_.size(); } else { return filterSpecsBuilder_.getCount(); } } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs getFilterSpecs(int index) { if (filterSpecsBuilder_ == null) { return filterSpecs_.get(index); } else { return filterSpecsBuilder_.getMessage(index); } } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFilterSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs value) { if (filterSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilterSpecsIsMutable(); filterSpecs_.set(index, value); onChanged(); } else { filterSpecsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFilterSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder builderForValue) { if (filterSpecsBuilder_ == null) { ensureFilterSpecsIsMutable(); filterSpecs_.set(index, builderForValue.build()); onChanged(); } else { filterSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFilterSpecs(com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs value) { if (filterSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilterSpecsIsMutable(); filterSpecs_.add(value); onChanged(); } else { filterSpecsBuilder_.addMessage(value); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFilterSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs value) { if (filterSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilterSpecsIsMutable(); filterSpecs_.add(index, value); onChanged(); } else { filterSpecsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFilterSpecs( com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder builderForValue) { if (filterSpecsBuilder_ == null) { ensureFilterSpecsIsMutable(); filterSpecs_.add(builderForValue.build()); onChanged(); } else { filterSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addFilterSpecs( int index, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder builderForValue) { if (filterSpecsBuilder_ == null) { ensureFilterSpecsIsMutable(); filterSpecs_.add(index, builderForValue.build()); onChanged(); } else { filterSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllFilterSpecs( java.lang.Iterable values) { if (filterSpecsBuilder_ == null) { ensureFilterSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterSpecs_); onChanged(); } else { filterSpecsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearFilterSpecs() { if (filterSpecsBuilder_ == null) { filterSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { filterSpecsBuilder_.clear(); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeFilterSpecs(int index) { if (filterSpecsBuilder_ == null) { ensureFilterSpecsIsMutable(); filterSpecs_.remove(index); onChanged(); } else { filterSpecsBuilder_.remove(index); } return this; } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder getFilterSpecsBuilder( int index) { return getFilterSpecsFieldBuilder().getBuilder(index); } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecsOrBuilder getFilterSpecsOrBuilder( int index) { if (filterSpecsBuilder_ == null) { return filterSpecs_.get(index); } else { return filterSpecsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getFilterSpecsOrBuilderList() { if (filterSpecsBuilder_ != null) { return filterSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(filterSpecs_); } } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder addFilterSpecsBuilder() { return getFilterSpecsFieldBuilder() .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.getDefaultInstance()); } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder addFilterSpecsBuilder( int index) { return getFilterSpecsFieldBuilder() .addBuilder( index, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.getDefaultInstance()); } /** * * *
     * Optional. Filter configuration for the datastores.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getFilterSpecsBuilderList() { return getFilterSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecsOrBuilder> getFilterSpecsFieldBuilder() { if (filterSpecsBuilder_ == null) { filterSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecs.Builder, com.google.cloud.dialogflow.cx.v3beta1.FilterSpecsOrBuilder>( filterSpecs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); filterSpecs_ = null; } return filterSpecsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.SearchConfig) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.SearchConfig) private static final com.google.cloud.dialogflow.cx.v3beta1.SearchConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.SearchConfig(); } public static com.google.cloud.dialogflow.cx.v3beta1.SearchConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SearchConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy