Class UpdateSessionRequest.Builder (0.44.0)

public static final class UpdateSessionRequest.Builder extends GeneratedMessageV3.Builder<UpdateSessionRequest.Builder> implements UpdateSessionRequestOrBuilder

Request for UpdateSession method.

Protobuf type google.cloud.discoveryengine.v1beta.UpdateSessionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSessionRequest build()
Returns
Type Description
UpdateSessionRequest

buildPartial()

public UpdateSessionRequest buildPartial()
Returns
Type Description
UpdateSessionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSession()

public UpdateSessionRequest.Builder clearSession()

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSessionRequest.Builder

clearUpdateMask()

public UpdateSessionRequest.Builder clearUpdateMask()

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateSessionRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSessionRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSessionRequest

getDescriptorForType()

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

getSession()

public Session getSession()

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Session

The session.

getSessionBuilder()

public Session.Builder getSessionBuilder()

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Session.Builder

getSessionOrBuilder()

public SessionOrBuilder getSessionOrBuilder()

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasSession()

public boolean hasSession()

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the session field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

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

mergeFrom(UpdateSessionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSession(Session value)

public UpdateSessionRequest.Builder mergeSession(Session value)

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Session
Returns
Type Description
UpdateSessionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSessionRequest.Builder mergeUpdateMask(FieldMask value)

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSessionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSession(Session value)

public UpdateSessionRequest.Builder setSession(Session value)

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Session
Returns
Type Description
UpdateSessionRequest.Builder

setSession(Session.Builder builderForValue)

public UpdateSessionRequest.Builder setSession(Session.Builder builderForValue)

Required. The Session to update.

.google.cloud.discoveryengine.v1beta.Session session = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Session.Builder
Returns
Type Description
UpdateSessionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSessionRequest.Builder setUpdateMask(FieldMask value)

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSessionRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSessionRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Indicates which fields in the provided Session to update. The following are NOT supported:

  • Session.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSessionRequest.Builder