Class UpdateExampleRequest.Builder (0.66.0)

public static final class UpdateExampleRequest.Builder extends GeneratedMessageV3.Builder<UpdateExampleRequest.Builder> implements UpdateExampleRequestOrBuilder

The request message for Examples.UpdateExample.

Protobuf type google.cloud.dialogflow.cx.v3beta1.UpdateExampleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateExampleRequest build()
Returns
Type Description
UpdateExampleRequest

buildPartial()

public UpdateExampleRequest buildPartial()
Returns
Type Description
UpdateExampleRequest

clear()

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

clearExample()

public UpdateExampleRequest.Builder clearExample()

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateExampleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateExampleRequest.Builder clearUpdateMask()

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateExampleRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateExampleRequest getDefaultInstanceForType()
Returns
Type Description
UpdateExampleRequest

getDescriptorForType()

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

getExample()

public Example getExample()

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Example

The example.

getExampleBuilder()

public Example.Builder getExampleBuilder()

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Example.Builder

getExampleOrBuilder()

public ExampleOrBuilder getExampleOrBuilder()

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExampleOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasExample()

public boolean hasExample()

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the example field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExample(Example value)

public UpdateExampleRequest.Builder mergeExample(Example value)

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Example
Returns
Type Description
UpdateExampleRequest.Builder

mergeFrom(UpdateExampleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateExampleRequest.Builder mergeUpdateMask(FieldMask value)

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateExampleRequest.Builder

setExample(Example value)

public UpdateExampleRequest.Builder setExample(Example value)

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Example
Returns
Type Description
UpdateExampleRequest.Builder

setExample(Example.Builder builderForValue)

public UpdateExampleRequest.Builder setExample(Example.Builder builderForValue)

Required. The example to update.

.google.cloud.dialogflow.cx.v3beta1.Example example = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Example.Builder
Returns
Type Description
UpdateExampleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateExampleRequest.Builder setUpdateMask(FieldMask value)

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateExampleRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateExampleRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateExampleRequest.Builder