public static final class AndroidDevice.Builder extends GeneratedMessageV3.Builder<AndroidDevice.Builder> implements AndroidDeviceOrBuilder
A single Android device.
Protobuf type google.cloud.devicestreaming.v1.AndroidDevice
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AndroidDevice.BuilderImplements
AndroidDeviceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AndroidDevice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
build()
public AndroidDevice build()
Returns | |
---|---|
Type | Description |
AndroidDevice |
buildPartial()
public AndroidDevice buildPartial()
Returns | |
---|---|
Type | Description |
AndroidDevice |
clear()
public AndroidDevice.Builder clear()
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
clearAndroidModelId()
public AndroidDevice.Builder clearAndroidModelId()
Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_model_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
clearAndroidVersionId()
public AndroidDevice.Builder clearAndroidVersionId()
Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_version_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AndroidDevice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
clearLocale()
public AndroidDevice.Builder clearLocale()
Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
string locale = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AndroidDevice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
clearOrientation()
public AndroidDevice.Builder clearOrientation()
Optional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
string orientation = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
clone()
public AndroidDevice.Builder clone()
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
getAndroidModelId()
public String getAndroidModelId()
Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_model_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The androidModelId. |
getAndroidModelIdBytes()
public ByteString getAndroidModelIdBytes()
Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_model_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for androidModelId. |
getAndroidVersionId()
public String getAndroidVersionId()
Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_version_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The androidVersionId. |
getAndroidVersionIdBytes()
public ByteString getAndroidVersionIdBytes()
Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_version_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for androidVersionId. |
getDefaultInstanceForType()
public AndroidDevice getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AndroidDevice |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLocale()
public String getLocale()
Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
string locale = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The locale. |
getLocaleBytes()
public ByteString getLocaleBytes()
Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
string locale = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for locale. |
getOrientation()
public String getOrientation()
Optional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
string orientation = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The orientation. |
getOrientationBytes()
public ByteString getOrientationBytes()
Optional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
string orientation = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for orientation. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(AndroidDevice other)
public AndroidDevice.Builder mergeFrom(AndroidDevice other)
Parameter | |
---|---|
Name | Description |
other |
AndroidDevice |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AndroidDevice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AndroidDevice.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AndroidDevice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
setAndroidModelId(String value)
public AndroidDevice.Builder setAndroidModelId(String value)
Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_model_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The androidModelId to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setAndroidModelIdBytes(ByteString value)
public AndroidDevice.Builder setAndroidModelIdBytes(ByteString value)
Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_model_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for androidModelId to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setAndroidVersionId(String value)
public AndroidDevice.Builder setAndroidVersionId(String value)
Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_version_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The androidVersionId to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setAndroidVersionIdBytes(ByteString value)
public AndroidDevice.Builder setAndroidVersionIdBytes(ByteString value)
Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
string android_version_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for androidVersionId to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AndroidDevice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
setLocale(String value)
public AndroidDevice.Builder setLocale(String value)
Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
string locale = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The locale to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setLocaleBytes(ByteString value)
public AndroidDevice.Builder setLocaleBytes(ByteString value)
Optional. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
string locale = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for locale to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setOrientation(String value)
public AndroidDevice.Builder setOrientation(String value)
Optional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
string orientation = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The orientation to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setOrientationBytes(ByteString value)
public AndroidDevice.Builder setOrientationBytes(ByteString value)
Optional. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
string orientation = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for orientation to set. |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AndroidDevice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AndroidDevice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AndroidDevice.Builder |