Class OperatingSystem.Builder (0.27.0)

public static final class OperatingSystem.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperatingSystem.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperatingSystem.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public OperatingSystem.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OperatingSystem.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public OperatingSystem.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OperatingSystem.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperatingSystem.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public OperatingSystem.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperatingSystem.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OperatingSystem.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OperatingSystem.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OperatingSystem.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperatingSystem.Builder
Overrides