Class GroundingConfig.Builder (0.50.0)

public static final class GroundingConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GroundingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GroundingConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public GroundingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public GroundingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GroundingConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GroundingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GroundingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GroundingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GroundingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GroundingConfig.Builder
Overrides