public static final class Network.Builder extends GeneratedMessage.Builder<Network.Builder> implements NetworkOrBuilderThe Network resource.
Protobuf type google.ads.admanager.v1.Network
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Network.BuilderImplements
NetworkOrBuilderStatic 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. |
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 |
StringThe 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 |
ByteStringThe 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 |
|
clearCurrencyCode()
public Network.Builder clearCurrencyCode()Output only. Primary currency code, in ISO-4217 format.
optional 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.
optional 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}/adUnits/{ad_unit}
optional 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. |
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.
optional 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.
optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Network.Builder |
This builder for chaining. |
clearPropertyCode()
public Network.Builder clearPropertyCode()Output only. Property code.
optional 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.
optional 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.
optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Network.Builder |
This builder for chaining. |
getCurrencyCode()
public String getCurrencyCode()Output only. Primary currency code, in ISO-4217 format.
optional 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.
optional 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 |
|
getDisplayName()
public String getDisplayName()Optional. Display name for Network.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Optional. Display name for Network.
optional 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}/adUnits/{ad_unit}
optional 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}/adUnits/{ad_unit}
optional 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.
optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The networkCode. |
getNetworkCodeBytes()
public ByteString getNetworkCodeBytes()Output only. Network Code.
optional 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.
optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The networkId. |
getPropertyCode()
public String getPropertyCode()Output only. Property code.
optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The propertyCode. |
getPropertyCodeBytes()
public ByteString getPropertyCodeBytes()Output only. Property code.
optional 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 |
intThe 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 |
intThe 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.
optional 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.
optional 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.
optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for timeZone. |
hasCurrencyCode()
public boolean hasCurrencyCode()Output only. Primary currency code, in ISO-4217 format.
optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the currencyCode field is set. |
hasDisplayName()
public boolean hasDisplayName()Optional. Display name for Network.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
hasEffectiveRootAdUnit()
public boolean hasEffectiveRootAdUnit()Output only. Top most Ad Unit to which descendant Ad Units can be added. Format: networks/{network_code}/adUnits/{ad_unit}
optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the effectiveRootAdUnit field is set. |
hasNetworkCode()
public boolean hasNetworkCode()Output only. Network Code.
optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the networkCode field is set. |
hasNetworkId()
public boolean hasNetworkId()Output only. Network ID.
optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the networkId field is set. |
hasPropertyCode()
public boolean hasPropertyCode()Output only. Property code.
optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the propertyCode field is set. |
hasTestNetwork()
public boolean hasTestNetwork()Output only. Whether this is a test network.
optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the testNetwork field is set. |
hasTimeZone()
public boolean hasTimeZone()Output only. Time zone associated with the delivery of orders and reporting.
optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeZone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Network.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Network.Builder |
|
setCurrencyCode(String value)
public Network.Builder setCurrencyCode(String value)Output only. Primary currency code, in ISO-4217 format.
optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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}/adUnits/{ad_unit}
optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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}/adUnits/{ad_unit}
optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for effectiveRootAdUnit to set. |
| Returns | |
|---|---|
| Type | Description |
Network.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe 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.
optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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.
optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe 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.
optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for propertyCode to set. |
| Returns | |
|---|---|
| Type | Description |
Network.Builder |
This builder for chaining. |
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 |
intThe index to set the value at. |
value |
StringThe 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.
optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe 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.
optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
Network.Builder |
This builder for chaining. |