Class CreateTargetSiteRequest.Builder (0.41.0)

public static final class CreateTargetSiteRequest.Builder extends GeneratedMessageV3.Builder<CreateTargetSiteRequest.Builder> implements CreateTargetSiteRequestOrBuilder

Request message for SiteSearchEngineService.CreateTargetSite method.

Protobuf type google.cloud.discoveryengine.v1.CreateTargetSiteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTargetSiteRequest build()
Returns
Type Description
CreateTargetSiteRequest

buildPartial()

public CreateTargetSiteRequest buildPartial()
Returns
Type Description
CreateTargetSiteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateTargetSiteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateTargetSiteRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateTargetSiteRequest.Builder clearParent()

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateTargetSiteRequest.Builder

This builder for chaining.

clearTargetSite()

public CreateTargetSiteRequest.Builder clearTargetSite()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTargetSiteRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateTargetSiteRequest getDefaultInstanceForType()
Returns
Type Description
CreateTargetSiteRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getTargetSite()

public TargetSite getTargetSite()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetSite

The targetSite.

getTargetSiteBuilder()

public TargetSite.Builder getTargetSiteBuilder()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetSite.Builder

getTargetSiteOrBuilder()

public TargetSiteOrBuilder getTargetSiteOrBuilder()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetSiteOrBuilder

hasTargetSite()

public boolean hasTargetSite()

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the targetSite field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTargetSiteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTargetSite(TargetSite value)

public CreateTargetSiteRequest.Builder mergeTargetSite(TargetSite value)

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TargetSite
Returns
Type Description
CreateTargetSiteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateTargetSiteRequest.Builder setParent(String value)

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTargetSiteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTargetSiteRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateTargetSiteRequest.Builder

This builder for chaining.

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

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

setTargetSite(TargetSite value)

public CreateTargetSiteRequest.Builder setTargetSite(TargetSite value)

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TargetSite
Returns
Type Description
CreateTargetSiteRequest.Builder

setTargetSite(TargetSite.Builder builderForValue)

public CreateTargetSiteRequest.Builder setTargetSite(TargetSite.Builder builderForValue)

Required. The TargetSite to create.

.google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TargetSite.Builder
Returns
Type Description
CreateTargetSiteRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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