public static final class CreateAssistantRequest.Builder extends GeneratedMessage.Builder<CreateAssistantRequest.Builder> implements CreateAssistantRequestOrBuilderRequest for the AssistantService.CreateAssistant method.
Protobuf type google.cloud.discoveryengine.v1beta.CreateAssistantRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateAssistantRequest.BuilderImplements
CreateAssistantRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateAssistantRequest build()| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest |
|
buildPartial()
public CreateAssistantRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest |
|
clear()
public CreateAssistantRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
clearAssistant()
public CreateAssistantRequest.Builder clearAssistant()Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
clearAssistantId()
public CreateAssistantRequest.Builder clearAssistantId()Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name.
This field must conform to RFC-1034 with a length limit of 63 characters.
string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
This builder for chaining. |
clearParent()
public CreateAssistantRequest.Builder clearParent() Required. The parent resource name.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
This builder for chaining. |
getAssistant()
public Assistant getAssistant()Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Assistant |
The assistant. |
getAssistantBuilder()
public Assistant.Builder getAssistantBuilder()Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
getAssistantId()
public String getAssistantId()Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name.
This field must conform to RFC-1034 with a length limit of 63 characters.
string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The assistantId. |
getAssistantIdBytes()
public ByteString getAssistantIdBytes()Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name.
This field must conform to RFC-1034 with a length limit of 63 characters.
string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for assistantId. |
getAssistantOrBuilder()
public AssistantOrBuilder getAssistantOrBuilder()Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AssistantOrBuilder |
|
getDefaultInstanceForType()
public CreateAssistantRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The parent resource name.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The parent resource name.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasAssistant()
public boolean hasAssistant()Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the assistant field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAssistant(Assistant value)
public CreateAssistantRequest.Builder mergeAssistant(Assistant value)Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
mergeFrom(CreateAssistantRequest other)
public CreateAssistantRequest.Builder mergeFrom(CreateAssistantRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateAssistantRequest |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateAssistantRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAssistantRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
setAssistant(Assistant value)
public CreateAssistantRequest.Builder setAssistant(Assistant value)Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
setAssistant(Assistant.Builder builderForValue)
public CreateAssistantRequest.Builder setAssistant(Assistant.Builder builderForValue)Required. The Assistant to create.
.google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Assistant.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
|
setAssistantId(String value)
public CreateAssistantRequest.Builder setAssistantId(String value)Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name.
This field must conform to RFC-1034 with a length limit of 63 characters.
string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe assistantId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
This builder for chaining. |
setAssistantIdBytes(ByteString value)
public CreateAssistantRequest.Builder setAssistantIdBytes(ByteString value)Required. The ID to use for the Assistant, which will become the final component of the Assistant's resource name.
This field must conform to RFC-1034 with a length limit of 63 characters.
string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for assistantId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateAssistantRequest.Builder setParent(String value) Required. The parent resource name.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateAssistantRequest.Builder setParentBytes(ByteString value) Required. The parent resource name.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateAssistantRequest.Builder |
This builder for chaining. |