Class BandwidthGroup.Builder (0.27.0)

public static final class BandwidthGroup.Builder extends GeneratedMessageV3.Builder<BandwidthGroup.Builder> implements BandwidthGroupOrBuilder

Represents a group of bandwidths that are logically organized by some well known generic name such as 'Cable' or 'DSL'.

Protobuf type google.ads.admanager.v1.BandwidthGroup

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BandwidthGroup build()
Returns
Type Description
BandwidthGroup

buildPartial()

public BandwidthGroup buildPartial()
Returns
Type Description
BandwidthGroup

clear()

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

clearDisplayName()

public BandwidthGroup.Builder clearDisplayName()

Output only. The localized name of the bandwidth group.

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

Returns
Type Description
BandwidthGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public BandwidthGroup.Builder clearName()

Identifier. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

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

Returns
Type Description
BandwidthGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BandwidthGroup getDefaultInstanceForType()
Returns
Type Description
BandwidthGroup

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The localized name of the bandwidth group.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The localized name of the bandwidth group.

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 BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

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

Returns
Type Description
ByteString

The bytes for name.

hasDisplayName()

public boolean hasDisplayName()

Output only. The localized name of the bandwidth group.

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

Returns
Type Description
boolean

Whether the displayName field is set.

hasName()

public boolean hasName()

Identifier. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

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

Returns
Type Description
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BandwidthGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BandwidthGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BandwidthGroup.Builder
Overrides

setDisplayName(String value)

public BandwidthGroup.Builder setDisplayName(String value)

Output only. The localized name of the bandwidth group.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
BandwidthGroup.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public BandwidthGroup.Builder setDisplayNameBytes(ByteString value)

Output only. The localized name of the bandwidth group.

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
BandwidthGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public BandwidthGroup.Builder setName(String value)

Identifier. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BandwidthGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BandwidthGroup.Builder setNameBytes(ByteString value)

Identifier. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BandwidthGroup.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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