Send feedback
Class Network (0.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.12.0 keyboard_arrow_down
public final class Network extends GeneratedMessageV3 implements NetworkOrBuilder
The Network resource.
Protobuf type google.ads.admanager.v1.Network
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value
Type
Description
int
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
EFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER
public static final int EFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
NETWORK_CODE_FIELD_NUMBER
public static final int NETWORK_CODE_FIELD_NUMBER
Field Value
Type
Description
int
NETWORK_ID_FIELD_NUMBER
public static final int NETWORK_ID_FIELD_NUMBER
Field Value
Type
Description
int
PROPERTY_CODE_FIELD_NUMBER
public static final int PROPERTY_CODE_FIELD_NUMBER
Field Value
Type
Description
int
SECONDARY_CURRENCY_CODES_FIELD_NUMBER
public static final int SECONDARY_CURRENCY_CODES_FIELD_NUMBER
Field Value
Type
Description
int
TEST_NETWORK_FIELD_NUMBER
public static final int TEST_NETWORK_FIELD_NUMBER
Field Value
Type
Description
int
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Network getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Network . Builder newBuilder ()
newBuilder(Network prototype)
public static Network . Builder newBuilder ( Network prototype )
Parameter
Name
Description
prototype
Network
public static Network parseDelimitedFrom ( InputStream input )
public static Network parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Network parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Network parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Network parseFrom ( CodedInputStream input )
public static Network parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Network parseFrom ( InputStream input )
public static Network parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Network parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Network parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Network> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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 ()
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()
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.
getParserForType()
public Parser<Network> getParserForType ()
Overrides
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];
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Network . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Network . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Network . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the Ad Manager API is 0.19.0, while the document page focuses on version 0.12.0."],["The `Network` class is a resource in the Ad Manager API and extends `GeneratedMessageV3`, implementing the `NetworkOrBuilder` interface."],["This resource represents an ad network and includes information such as currency code, display name, network code, network ID, property code, time zone and more."],["The `Network` class provides methods to parse data, retrieve various network properties, and manage related fields."],["Static methods allow for the creation of new instances, parsing from various data types, and retrieving the default instance of the `Network` class."]]],[]]