public static final class CreateExampleRequest.Builder extends GeneratedMessage.Builder<CreateExampleRequest.Builder> implements CreateExampleRequestOrBuilderRequest message for AgentService.CreateExample.
Protobuf type google.cloud.ces.v1.CreateExampleRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateExampleRequest.BuilderImplements
CreateExampleRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateExampleRequest build()| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest |
|
buildPartial()
public CreateExampleRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest |
|
clear()
public CreateExampleRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
clearExample()
public CreateExampleRequest.Builder clearExample()Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
clearExampleId()
public CreateExampleRequest.Builder clearExampleId()Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example.
string example_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
This builder for chaining. |
clearParent()
public CreateExampleRequest.Builder clearParent()Required. The resource name of the app to create an example in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateExampleRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExample()
public Example getExample()Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Example |
The example. |
getExampleBuilder()
public Example.Builder getExampleBuilder()Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Example.Builder |
|
getExampleId()
public String getExampleId()Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example.
string example_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The exampleId. |
getExampleIdBytes()
public ByteString getExampleIdBytes()Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example.
string example_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for exampleId. |
getExampleOrBuilder()
public ExampleOrBuilder getExampleOrBuilder()Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExampleOrBuilder |
|
getParent()
public String getParent()Required. The resource name of the app to create an example in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The resource name of the app to create an example in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasExample()
public boolean hasExample()Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the example field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeExample(Example value)
public CreateExampleRequest.Builder mergeExample(Example value)Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Example |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
mergeFrom(CreateExampleRequest other)
public CreateExampleRequest.Builder mergeFrom(CreateExampleRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateExampleRequest |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateExampleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateExampleRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
setExample(Example value)
public CreateExampleRequest.Builder setExample(Example value)Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Example |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
setExample(Example.Builder builderForValue)
public CreateExampleRequest.Builder setExample(Example.Builder builderForValue)Required. The example to create.
.google.cloud.ces.v1.Example example = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Example.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
|
setExampleId(String value)
public CreateExampleRequest.Builder setExampleId(String value)Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example.
string example_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe exampleId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
This builder for chaining. |
setExampleIdBytes(ByteString value)
public CreateExampleRequest.Builder setExampleIdBytes(ByteString value)Optional. The ID to use for the example, which will become the final component of the example's resource name. If not provided, a unique ID will be automatically assigned for the example.
string example_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for exampleId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateExampleRequest.Builder setParent(String value)Required. The resource name of the app to create an example in.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateExampleRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateExampleRequest.Builder setParentBytes(ByteString value)Required. The resource name of the app to create an example in.
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 |
CreateExampleRequest.Builder |
This builder for chaining. |