public static final class LinkedDevice.Builder extends GeneratedMessage.Builder<LinkedDevice.Builder> implements LinkedDeviceOrBuilderA 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LinkedDevice.BuilderImplements
LinkedDeviceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public LinkedDevice build()| Returns | |
|---|---|
| Type | Description |
LinkedDevice |
|
buildPartial()
public LinkedDevice buildPartial()| Returns | |
|---|---|
| Type | Description |
LinkedDevice |
|
clear()
public LinkedDevice.Builder clear()| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
|
clearDisplayName()
public LinkedDevice.Builder clearDisplayName()Required. The display name of the LinkedDevice.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
clearName()
public LinkedDevice.Builder clearName() 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 |
LinkedDevice.Builder |
This builder for chaining. |
clearOwner()
public LinkedDevice.Builder clearOwner() 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 |
LinkedDevice.Builder |
This builder for chaining. |
clearVisibility()
public LinkedDevice.Builder clearVisibility()Optional. The visibility of the device.
optional .google.ads.admanager.v1.LinkedDeviceVisibilityEnum.LinkedDeviceVisibility visibility = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LinkedDevice getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LinkedDevice |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LinkedDevice other)
public LinkedDevice.Builder mergeFrom(LinkedDevice other)| Parameter | |
|---|---|
| Name | Description |
other |
LinkedDevice |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LinkedDevice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LinkedDevice.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
|
setDisplayName(String value)
public LinkedDevice.Builder setDisplayName(String value)Required. The display name of the LinkedDevice.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public LinkedDevice.Builder setDisplayNameBytes(ByteString value)Required. The display name of the LinkedDevice.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setName(String value)
public LinkedDevice.Builder setName(String value) Identifier. The resource name of the LinkedDevice.
Format: networks/{network_code}/linkedDevices/{linked_device_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public LinkedDevice.Builder setNameBytes(ByteString value) Identifier. The resource name of the LinkedDevice.
Format: networks/{network_code}/linkedDevices/{linked_device_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setOwner(String value)
public LinkedDevice.Builder setOwner(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe owner to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setOwnerBytes(ByteString value)
public LinkedDevice.Builder setOwnerBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for owner to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setVisibility(LinkedDeviceVisibilityEnum.LinkedDeviceVisibility value)
public LinkedDevice.Builder setVisibility(LinkedDeviceVisibilityEnum.LinkedDeviceVisibility value)Optional. The visibility of the device.
optional .google.ads.admanager.v1.LinkedDeviceVisibilityEnum.LinkedDeviceVisibility visibility = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
LinkedDeviceVisibilityEnum.LinkedDeviceVisibilityThe visibility to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |
setVisibilityValue(int value)
public LinkedDevice.Builder setVisibilityValue(int value)Optional. The visibility of the device.
optional .google.ads.admanager.v1.LinkedDeviceVisibilityEnum.LinkedDeviceVisibility visibility = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for visibility to set. |
| Returns | |
|---|---|
| Type | Description |
LinkedDevice.Builder |
This builder for chaining. |