Class UpdateDeviceSessionRequest.Builder (0.10.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.10.0keyboard_arrow_down
public static final class UpdateDeviceSessionRequest . Builder extends GeneratedMessageV3 . Builder<UpdateDeviceSessionRequest . Builder > implements UpdateDeviceSessionRequestOrBuilder
Request message for DirectAccessService.UpdateDeviceSession.
Protobuf type google.cloud.devicestreaming.v1.UpdateDeviceSessionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateDeviceSessionRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public UpdateDeviceSessionRequest build ()
buildPartial()
public UpdateDeviceSessionRequest buildPartial ()
clear()
public UpdateDeviceSessionRequest . Builder clear ()
Overrides
clearDeviceSession()
public UpdateDeviceSessionRequest . Builder clearDeviceSession ()
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public UpdateDeviceSessionRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateDeviceSessionRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearUpdateMask()
public UpdateDeviceSessionRequest . Builder clearUpdateMask ()
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public UpdateDeviceSessionRequest . Builder clone ()
Overrides
getDefaultInstanceForType()
public UpdateDeviceSessionRequest getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDeviceSession()
public DeviceSession getDeviceSession ()
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
getDeviceSessionBuilder()
public DeviceSession . Builder getDeviceSessionBuilder ()
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
getDeviceSessionOrBuilder()
public DeviceSessionOrBuilder getDeviceSessionOrBuilder ()
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
getUpdateMask()
public FieldMask getUpdateMask ()
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
FieldMask
The updateMask.
getUpdateMaskBuilder()
public FieldMask . Builder getUpdateMaskBuilder ()
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder ()
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
hasDeviceSession()
public boolean hasDeviceSession ()
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the deviceSession field is set.
hasUpdateMask()
public boolean hasUpdateMask ()
Optional. The list of fields to update.
.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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeDeviceSession(DeviceSession value)
public UpdateDeviceSessionRequest . Builder mergeDeviceSession ( DeviceSession value )
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(UpdateDeviceSessionRequest other)
public UpdateDeviceSessionRequest . Builder mergeFrom ( UpdateDeviceSessionRequest other )
public UpdateDeviceSessionRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public UpdateDeviceSessionRequest . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDeviceSessionRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
mergeUpdateMask(FieldMask value)
public UpdateDeviceSessionRequest . Builder mergeUpdateMask ( FieldMask value )
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
setDeviceSession(DeviceSession value)
public UpdateDeviceSessionRequest . Builder setDeviceSession ( DeviceSession value )
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
setDeviceSession(DeviceSession.Builder builderForValue)
public UpdateDeviceSessionRequest . Builder setDeviceSession ( DeviceSession . Builder builderForValue )
Required. DeviceSession to update.
The DeviceSession's name
field is used to identify the session to update
"projects/{project_id}/deviceSessions/{session_id}"
.google.cloud.devicestreaming.v1.DeviceSession device_session = 1 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateDeviceSessionRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateDeviceSessionRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDeviceSessionRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setUpdateMask(FieldMask value)
public UpdateDeviceSessionRequest . Builder setUpdateMask ( FieldMask value )
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateDeviceSessionRequest . Builder setUpdateMask ( FieldMask . Builder builderForValue )
Optional. The list of fields to update.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
builderForValue
Builder
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,[]]