Class OperatingSystem.Builder (0.44.0)

public static final class OperatingSystem.Builder extends GeneratedMessage.Builder<OperatingSystem.Builder> implements OperatingSystemOrBuilder

Represents a device's operating system.

Protobuf type google.ads.admanager.v1.OperatingSystem

Static Methods

getDescriptor()

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

Methods

build()

public OperatingSystem build()
Returns
Type Description
OperatingSystem

buildPartial()

public OperatingSystem buildPartial()
Returns
Type Description
OperatingSystem

clear()

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

clearDisplayName()

public OperatingSystem.Builder clearDisplayName()

Output only. The name of the operating system.

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

Returns
Type Description
OperatingSystem.Builder

This builder for chaining.

clearName()

public OperatingSystem.Builder clearName()

Identifier. The resource name of the OperatingSystem. Format: networks/{network_code}/operatingSystems/{operating_system_id}

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

Returns
Type Description
OperatingSystem.Builder

This builder for chaining.

getDefaultInstanceForType()

public OperatingSystem getDefaultInstanceForType()
Returns
Type Description
OperatingSystem

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The name of the operating system.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The name of the operating system.

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

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the OperatingSystem. Format: networks/{network_code}/operatingSystems/{operating_system_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 OperatingSystem. Format: networks/{network_code}/operatingSystems/{operating_system_id}

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

Returns
Type Description
ByteString

The bytes for name.

hasDisplayName()

public boolean hasDisplayName()

Output only. The name of the operating system.

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

Returns
Type Description
boolean

Whether the displayName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperatingSystem other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public OperatingSystem.Builder setDisplayName(String value)

Output only. The name of the operating system.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
OperatingSystem.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public OperatingSystem.Builder setDisplayNameBytes(ByteString value)

Output only. The name of the operating system.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
OperatingSystem.Builder

This builder for chaining.

setName(String value)

public OperatingSystem.Builder setName(String value)

Identifier. The resource name of the OperatingSystem. Format: networks/{network_code}/operatingSystems/{operating_system_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OperatingSystem.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OperatingSystem.Builder setNameBytes(ByteString value)

Identifier. The resource name of the OperatingSystem. Format: networks/{network_code}/operatingSystems/{operating_system_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OperatingSystem.Builder

This builder for chaining.