Class GroundingConfig.Builder (0.81.0)

public static final class GroundingConfig.Builder extends GeneratedMessage.Builder<GroundingConfig.Builder> implements GroundingConfigOrBuilder

Grounding configuration.

Protobuf type google.cloud.discoveryengine.v1beta.GroundingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public GroundingConfig build()
Returns
Type Description
GroundingConfig

buildPartial()

public GroundingConfig buildPartial()
Returns
Type Description
GroundingConfig

clear()

public GroundingConfig.Builder clear()
Returns
Type Description
GroundingConfig.Builder
Overrides

clearName()

public GroundingConfig.Builder clearName()

Required. Name of the GroundingConfig, of the form projects/{project}/locations/{location}/groundingConfigs/{grounding_config}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GroundingConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public GroundingConfig getDefaultInstanceForType()
Returns
Type Description
GroundingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Name of the GroundingConfig, of the form projects/{project}/locations/{location}/groundingConfigs/{grounding_config}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the GroundingConfig, of the form projects/{project}/locations/{location}/groundingConfigs/{grounding_config}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GroundingConfig other)

public GroundingConfig.Builder mergeFrom(GroundingConfig other)
Parameter
Name Description
other GroundingConfig
Returns
Type Description
GroundingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroundingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroundingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GroundingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GroundingConfig.Builder
Overrides

setName(String value)

public GroundingConfig.Builder setName(String value)

Required. Name of the GroundingConfig, of the form projects/{project}/locations/{location}/groundingConfigs/{grounding_config}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GroundingConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GroundingConfig.Builder setNameBytes(ByteString value)

Required. Name of the GroundingConfig, of the form projects/{project}/locations/{location}/groundingConfigs/{grounding_config}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GroundingConfig.Builder

This builder for chaining.