Class Network.Builder (0.1.0)

public static final class Network.Builder extends GeneratedMessageV3.Builder<Network.Builder> implements NetworkOrBuilder

The Network resource.

Protobuf type google.ads.admanager.v1.Network

Implements

NetworkOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSecondaryCurrencyCodes(Iterable<String> values)

public Network.Builder addAllSecondaryCurrencyCodes(Iterable<String> values)

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The secondaryCurrencyCodes to add.

Returns
Type Description
Network.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSecondaryCurrencyCodes(String value)

public Network.Builder addSecondaryCurrencyCodes(String value)

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The secondaryCurrencyCodes to add.

Returns
Type Description
Network.Builder

This builder for chaining.

addSecondaryCurrencyCodesBytes(ByteString value)

public Network.Builder addSecondaryCurrencyCodesBytes(ByteString value)

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the secondaryCurrencyCodes to add.

Returns
Type Description
Network.Builder

This builder for chaining.

build()

public Network build()
Returns
Type Description
Network

buildPartial()

public Network buildPartial()
Returns
Type Description
Network

clear()

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

clearCurrencyCode()

public Network.Builder clearCurrencyCode()

Output only. Primary currency code, in ISO-4217 format.

string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

This builder for chaining.

clearDisplayName()

public Network.Builder clearDisplayName()

Optional. Display name for Network.

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

Returns
Type Description
Network.Builder

This builder for chaining.

clearEffectiveRootAdUnit()

public Network.Builder clearEffectiveRootAdUnit()

Output only. Top most Ad Unit to which descendant Ad Units can be added. Format: networks/{network_code}/adUnit/{ad_unit_id}

string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Network.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Network.Builder clearName()

Identifier. The resource name of the Network. Format: networks/{network_code}

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

Returns
Type Description
Network.Builder

This builder for chaining.

clearNetworkCode()

public Network.Builder clearNetworkCode()

Output only. Network Code.

string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

This builder for chaining.

clearNetworkId()

public Network.Builder clearNetworkId()

Output only. Network ID.

int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyCode()

public Network.Builder clearPropertyCode()

Output only. Property code.

string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

This builder for chaining.

clearSecondaryCurrencyCodes()

public Network.Builder clearSecondaryCurrencyCodes()

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Network.Builder

This builder for chaining.

clearTestNetwork()

public Network.Builder clearTestNetwork()

Output only. Whether this is a test network.

bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

This builder for chaining.

clearTimeZone()

public Network.Builder clearTimeZone()

Output only. Time zone associated with the delivery of orders and reporting.

string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

This builder for chaining.

clone()

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

getCurrencyCode()

public String getCurrencyCode()

Output only. Primary currency code, in ISO-4217 format.

string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

Output only. Primary currency code, in ISO-4217 format.

string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public Network getDefaultInstanceForType()
Returns
Type Description
Network

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. Display name for Network.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name for Network.

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

Returns
Type Description
ByteString

The bytes for displayName.

getEffectiveRootAdUnit()

public String getEffectiveRootAdUnit()

Output only. Top most Ad Unit to which descendant Ad Units can be added. Format: networks/{network_code}/adUnit/{ad_unit_id}

string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The effectiveRootAdUnit.

getEffectiveRootAdUnitBytes()

public ByteString getEffectiveRootAdUnitBytes()

Output only. Top most Ad Unit to which descendant Ad Units can be added. Format: networks/{network_code}/adUnit/{ad_unit_id}

string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for effectiveRootAdUnit.

getName()

public String getName()

Identifier. The resource name of the Network. Format: networks/{network_code}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the Network. Format: networks/{network_code}

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

Returns
Type Description
ByteString

The bytes for name.

getNetworkCode()

public String getNetworkCode()

Output only. Network Code.

string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The networkCode.

getNetworkCodeBytes()

public ByteString getNetworkCodeBytes()

Output only. Network Code.

string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for networkCode.

getNetworkId()

public long getNetworkId()

Output only. Network ID.

int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The networkId.

getPropertyCode()

public String getPropertyCode()

Output only. Property code.

string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The propertyCode.

getPropertyCodeBytes()

public ByteString getPropertyCodeBytes()

Output only. Property code.

string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for propertyCode.

getSecondaryCurrencyCodes(int index)

public String getSecondaryCurrencyCodes(int index)

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The secondaryCurrencyCodes at the given index.

getSecondaryCurrencyCodesBytes(int index)

public ByteString getSecondaryCurrencyCodesBytes(int index)

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the secondaryCurrencyCodes at the given index.

getSecondaryCurrencyCodesCount()

public int getSecondaryCurrencyCodesCount()

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of secondaryCurrencyCodes.

getSecondaryCurrencyCodesList()

public ProtocolStringList getSecondaryCurrencyCodesList()

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the secondaryCurrencyCodes.

getTestNetwork()

public boolean getTestNetwork()

Output only. Whether this is a test network.

bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The testNetwork.

getTimeZone()

public String getTimeZone()

Output only. Time zone associated with the delivery of orders and reporting.

string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Output only. Time zone associated with the delivery of orders and reporting.

string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for timeZone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Network other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCurrencyCode(String value)

public Network.Builder setCurrencyCode(String value)

Output only. Primary currency code, in ISO-4217 format.

string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The currencyCode to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public Network.Builder setCurrencyCodeBytes(ByteString value)

Output only. Primary currency code, in ISO-4217 format.

string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for currencyCode to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setDisplayName(String value)

public Network.Builder setDisplayName(String value)

Optional. Display name for Network.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Network.Builder setDisplayNameBytes(ByteString value)

Optional. Display name for Network.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setEffectiveRootAdUnit(String value)

public Network.Builder setEffectiveRootAdUnit(String value)

Output only. Top most Ad Unit to which descendant Ad Units can be added. Format: networks/{network_code}/adUnit/{ad_unit_id}

string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The effectiveRootAdUnit to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setEffectiveRootAdUnitBytes(ByteString value)

public Network.Builder setEffectiveRootAdUnitBytes(ByteString value)

Output only. Top most Ad Unit to which descendant Ad Units can be added. Format: networks/{network_code}/adUnit/{ad_unit_id}

string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for effectiveRootAdUnit to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Network.Builder setName(String value)

Identifier. The resource name of the Network. Format: networks/{network_code}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Network.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Network. Format: networks/{network_code}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setNetworkCode(String value)

public Network.Builder setNetworkCode(String value)

Output only. Network Code.

string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The networkCode to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setNetworkCodeBytes(ByteString value)

public Network.Builder setNetworkCodeBytes(ByteString value)

Output only. Network Code.

string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for networkCode to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setNetworkId(long value)

public Network.Builder setNetworkId(long value)

Output only. Network ID.

int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The networkId to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setPropertyCode(String value)

public Network.Builder setPropertyCode(String value)

Output only. Property code.

string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The propertyCode to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setPropertyCodeBytes(ByteString value)

public Network.Builder setPropertyCodeBytes(ByteString value)

Output only. Property code.

string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for propertyCode to set.

Returns
Type Description
Network.Builder

This builder for chaining.

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

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

setSecondaryCurrencyCodes(int index, String value)

public Network.Builder setSecondaryCurrencyCodes(int index, String value)

Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items.

repeated string secondary_currency_codes = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The secondaryCurrencyCodes to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setTestNetwork(boolean value)

public Network.Builder setTestNetwork(boolean value)

Output only. Whether this is a test network.

bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The testNetwork to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setTimeZone(String value)

public Network.Builder setTimeZone(String value)

Output only. Time zone associated with the delivery of orders and reporting.

string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public Network.Builder setTimeZoneBytes(ByteString value)

Output only. Time zone associated with the delivery of orders and reporting.

string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
Network.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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