Class LinkedDevice (0.52.0)

public final class LinkedDevice extends GeneratedMessage implements LinkedDeviceOrBuilder

A test mobile device that is linked to the network. Can be used to preview a creative within a mobile application.

Protobuf type google.ads.admanager.v1.LinkedDevice

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OWNER_FIELD_NUMBER

public static final int OWNER_FIELD_NUMBER
Field Value
Type Description
int

VISIBILITY_FIELD_NUMBER

public static final int VISIBILITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LinkedDevice getDefaultInstance()
Returns
Type Description
LinkedDevice

getDescriptor()

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

newBuilder()

public static LinkedDevice.Builder newBuilder()
Returns
Type Description
LinkedDevice.Builder

newBuilder(LinkedDevice prototype)

public static LinkedDevice.Builder newBuilder(LinkedDevice prototype)
Parameter
Name Description
prototype LinkedDevice
Returns
Type Description
LinkedDevice.Builder

parseDelimitedFrom(InputStream input)

public static LinkedDevice parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LinkedDevice
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LinkedDevice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinkedDevice
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LinkedDevice parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LinkedDevice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LinkedDevice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinkedDevice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LinkedDevice parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LinkedDevice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LinkedDevice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinkedDevice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LinkedDevice parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LinkedDevice
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LinkedDevice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinkedDevice
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LinkedDevice parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LinkedDevice
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LinkedDevice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinkedDevice
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LinkedDevice parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LinkedDevice
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LinkedDevice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinkedDevice
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LinkedDevice> parser()
Returns
Type Description
Parser<LinkedDevice>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LinkedDevice getDefaultInstanceForType()
Returns
Type Description
LinkedDevice

getDisplayName()

public String getDisplayName()

Required. The display name of the LinkedDevice.

optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the LinkedDevice.

optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the LinkedDevice. Format: networks/{network_code}/linkedDevices/{linked_device_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the LinkedDevice. Format: networks/{network_code}/linkedDevices/{linked_device_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getOwner()

public String getOwner()

Output only. The user who owns this device linking. Format: networks/{network_code}/users/{user}

optional string owner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The owner.

getOwnerBytes()

public ByteString getOwnerBytes()

Output only. The user who owns this device linking. Format: networks/{network_code}/users/{user}

optional string owner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for owner.

getParserForType()

public Parser<LinkedDevice> getParserForType()
Returns
Type Description
Parser<LinkedDevice>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVisibility()

public LinkedDeviceVisibilityEnum.LinkedDeviceVisibility getVisibility()

Optional. The visibility of the device.

optional .google.ads.admanager.v1.LinkedDeviceVisibilityEnum.LinkedDeviceVisibility visibility = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinkedDeviceVisibilityEnum.LinkedDeviceVisibility

The visibility.

getVisibilityValue()

public int getVisibilityValue()

Optional. The visibility of the device.

optional .google.ads.admanager.v1.LinkedDeviceVisibilityEnum.LinkedDeviceVisibility visibility = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for visibility.

hasDisplayName()

public boolean hasDisplayName()

Required. The display name of the LinkedDevice.

optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the displayName field is set.

hasOwner()

public boolean hasOwner()

Output only. The user who owns this device linking. Format: networks/{network_code}/users/{user}

optional string owner = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the owner field is set.

hasVisibility()

public boolean hasVisibility()

Optional. The visibility of the device.

optional .google.ads.admanager.v1.LinkedDeviceVisibilityEnum.LinkedDeviceVisibility visibility = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the visibility field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LinkedDevice.Builder newBuilderForType()
Returns
Type Description
LinkedDevice.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LinkedDevice.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LinkedDevice.Builder
Overrides

toBuilder()

public LinkedDevice.Builder toBuilder()
Returns
Type Description
LinkedDevice.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException