Class CreateTargetSiteRequest.Builder (0.30.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.v1alpha.CreateTargetSiteRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateTargetSiteRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

build()

public CreateTargetSiteRequest build()
Returns
TypeDescription
CreateTargetSiteRequest

buildPartial()

public CreateTargetSiteRequest buildPartial()
Returns
TypeDescription
CreateTargetSiteRequest

clear()

public CreateTargetSiteRequest.Builder clear()
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateTargetSiteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateTargetSiteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateTargetSiteRequest.Builder

This builder for chaining.

clearTargetSite()

public CreateTargetSiteRequest.Builder clearTargetSite()

Required. The TargetSite to create.

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

Returns
TypeDescription
CreateTargetSiteRequest.Builder

clone()

public CreateTargetSiteRequest.Builder clone()
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateTargetSiteRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTargetSiteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getTargetSite()

public TargetSite getTargetSite()

Required. The TargetSite to create.

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

Returns
TypeDescription
TargetSite

The targetSite.

getTargetSiteBuilder()

public TargetSite.Builder getTargetSiteBuilder()

Required. The TargetSite to create.

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

Returns
TypeDescription
TargetSite.Builder

getTargetSiteOrBuilder()

public TargetSiteOrBuilder getTargetSiteOrBuilder()

Required. The TargetSite to create.

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

Returns
TypeDescription
TargetSiteOrBuilder

hasTargetSite()

public boolean hasTargetSite()

Required. The TargetSite to create.

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

Returns
TypeDescription
boolean

Whether the targetSite field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTargetSiteRequest other)

public CreateTargetSiteRequest.Builder mergeFrom(CreateTargetSiteRequest other)
Parameter
NameDescription
otherCreateTargetSiteRequest
Returns
TypeDescription
CreateTargetSiteRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateTargetSiteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateTargetSiteRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

mergeTargetSite(TargetSite value)

public CreateTargetSiteRequest.Builder mergeTargetSite(TargetSite value)

Required. The TargetSite to create.

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

Parameter
NameDescription
valueTargetSite
Returns
TypeDescription
CreateTargetSiteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateTargetSiteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateTargetSiteRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides

setTargetSite(TargetSite value)

public CreateTargetSiteRequest.Builder setTargetSite(TargetSite value)

Required. The TargetSite to create.

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

Parameter
NameDescription
valueTargetSite
Returns
TypeDescription
CreateTargetSiteRequest.Builder

setTargetSite(TargetSite.Builder builderForValue)

public CreateTargetSiteRequest.Builder setTargetSite(TargetSite.Builder builderForValue)

Required. The TargetSite to create.

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

Parameter
NameDescription
builderForValueTargetSite.Builder
Returns
TypeDescription
CreateTargetSiteRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateTargetSiteRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateTargetSiteRequest.Builder
Overrides