public static final class EnrollSolutionRequest.Builder extends GeneratedMessage.Builder<EnrollSolutionRequest.Builder> implements EnrollSolutionRequestOrBuilderRequest for EnrollSolution method.
Protobuf type google.cloud.retail.v2alpha.EnrollSolutionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EnrollSolutionRequest.BuilderImplements
EnrollSolutionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public EnrollSolutionRequest build()| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest |
|
buildPartial()
public EnrollSolutionRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest |
|
clear()
public EnrollSolutionRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
|
clearProject()
public EnrollSolutionRequest.Builder clearProject() Required. Full resource name of parent. Format:
projects/{project_number_or_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
This builder for chaining. |
clearSolution()
public EnrollSolutionRequest.Builder clearSolution()Required. Solution to enroll.
.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public EnrollSolutionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getProject()
public String getProject() Required. Full resource name of parent. Format:
projects/{project_number_or_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The project. |
getProjectBytes()
public ByteString getProjectBytes() Required. Full resource name of parent. Format:
projects/{project_number_or_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for project. |
getSolution()
public SolutionType getSolution()Required. Solution to enroll.
.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SolutionType |
The solution. |
getSolutionValue()
public int getSolutionValue()Required. Solution to enroll.
.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for solution. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EnrollSolutionRequest other)
public EnrollSolutionRequest.Builder mergeFrom(EnrollSolutionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
EnrollSolutionRequest |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EnrollSolutionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EnrollSolutionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
|
setProject(String value)
public EnrollSolutionRequest.Builder setProject(String value) Required. Full resource name of parent. Format:
projects/{project_number_or_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe project to set. |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
This builder for chaining. |
setProjectBytes(ByteString value)
public EnrollSolutionRequest.Builder setProjectBytes(ByteString value) Required. Full resource name of parent. Format:
projects/{project_number_or_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for project to set. |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
This builder for chaining. |
setSolution(SolutionType value)
public EnrollSolutionRequest.Builder setSolution(SolutionType value)Required. Solution to enroll.
.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
SolutionTypeThe solution to set. |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
This builder for chaining. |
setSolutionValue(int value)
public EnrollSolutionRequest.Builder setSolutionValue(int value)Required. Solution to enroll.
.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for solution to set. |
| Returns | |
|---|---|
| Type | Description |
EnrollSolutionRequest.Builder |
This builder for chaining. |