Send feedback
Class DataStoreTool.SnippetsConfig.Builder (0.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
0.19.0 (latest)
0.15.0
0.11.0
0.10.0
0.9.0
0.7.0
0.4.0
0.3.0
0.1.0
public static final class DataStoreTool . SnippetsConfig . Builder extends GeneratedMessage . Builder<DataStoreTool . SnippetsConfig . Builder > implements DataStoreTool . SnippetsConfigOrBuilder
Snippets configuration.
Protobuf type google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public DataStoreTool . SnippetsConfig build ()
public DataStoreTool . SnippetsConfig buildPartial ()
public DataStoreTool . SnippetsConfig . Builder clear ()
Overrides
public DataStoreTool . SnippetsConfig . Builder clearEnableSnippets ()
Optional. Whether snippets are enabled.
bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL];
public DataStoreTool . SnippetsConfig . Builder clearMaxSnippets ()
Optional. Number of snippets to return per query.
If unset, returns all snippets from the service by default.
int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL];
public DataStoreTool . SnippetsConfig getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public boolean getEnableSnippets ()
Optional. Whether snippets are enabled.
bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
The enableSnippets.
public int getMaxSnippets ()
Optional. Number of snippets to return per query.
If unset, returns all snippets from the service by default.
int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The maxSnippets.
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public DataStoreTool . SnippetsConfig . Builder mergeFrom ( DataStoreTool . SnippetsConfig other )
public DataStoreTool . SnippetsConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public DataStoreTool . SnippetsConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public DataStoreTool . SnippetsConfig . Builder setEnableSnippets ( boolean value )
Optional. Whether snippets are enabled.
bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
boolean The enableSnippets to set.
public DataStoreTool . SnippetsConfig . Builder setMaxSnippets ( int value )
Optional. Number of snippets to return per query.
If unset, returns all snippets from the service by default.
int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
int The maxSnippets to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-18 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-18 UTC."],[],[]]