Class Network (0.42.0) Stay organized with collections Save and categorize content based on your preferences.
publicfinalclassNetworkextendsGeneratedMessageimplementsNetworkOrBuilderThe Network resource.
Protobuf typegoogle.ads.admanager.v1.Network
Inheritance
Object >AbstractMessageLite<MessageType,BuilderType> >AbstractMessage >GeneratedMessage >NetworkImplements
NetworkOrBuilderInherited Members
Static Fields
CURRENCY_CODE_FIELD_NUMBER
publicstaticfinalintCURRENCY_CODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
EFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER
publicstaticfinalintEFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
NETWORK_CODE_FIELD_NUMBER
publicstaticfinalintNETWORK_CODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
NETWORK_ID_FIELD_NUMBER
publicstaticfinalintNETWORK_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
PROPERTY_CODE_FIELD_NUMBER
publicstaticfinalintPROPERTY_CODE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
SECONDARY_CURRENCY_CODES_FIELD_NUMBER
publicstaticfinalintSECONDARY_CURRENCY_CODES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
TEST_NETWORK_FIELD_NUMBER
publicstaticfinalintTEST_NETWORK_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
TIME_ZONE_FIELD_NUMBER
publicstaticfinalintTIME_ZONE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
Static Methods
getDefaultInstance()
publicstaticNetworkgetDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Network | |
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor | |
newBuilder()
publicstaticNetwork.BuildernewBuilder()| Returns | |
|---|---|
| Type | Description |
Network.Builder | |
newBuilder(Network prototype)
publicstaticNetwork.BuildernewBuilder(Networkprototype)| Parameter | |
|---|---|
| Name | Description |
prototype | Network |
| Returns | |
|---|---|
| Type | Description |
Network.Builder | |
parseDelimitedFrom(InputStream input)
publicstaticNetworkparseDelimitedFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input | InputStream |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(byte[] data)
publicstaticNetworkparseFrom(byte[]data)| Parameter | |
|---|---|
| Name | Description |
data | byte[] |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(ByteString data)
publicstaticNetworkparseFrom(ByteStringdata)| Parameter | |
|---|---|
| Name | Description |
data | ByteString |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(CodedInputStream input)
publicstaticNetworkparseFrom(CodedInputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input | CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(InputStream input)
publicstaticNetworkparseFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input | InputStream |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(ByteBuffer data)
publicstaticNetworkparseFrom(ByteBufferdata)| Parameter | |
|---|---|
| Name | Description |
data | ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticNetworkparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Network | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parser()
publicstaticParser<Network>parser()| Returns | |
|---|---|
| Type | Description |
Parser<Network> | |
Methods
equals(Object obj)
publicbooleanequals(Objectobj)| Parameter | |
|---|---|
| Name | Description |
obj | Object |
| Returns | |
|---|---|
| Type | Description |
boolean | |
getCurrencyCode()
publicStringgetCurrencyCode()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()
publicByteStringgetCurrencyCodeBytes()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()
publicNetworkgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Network | |
getDisplayName()
publicStringgetDisplayName()Optional. Display name for Network.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String | The displayName. |
getDisplayNameBytes()
publicByteStringgetDisplayNameBytes()Optional. Display name for Network.
optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString | The bytes for displayName. |
getEffectiveRootAdUnit()
publicStringgetEffectiveRootAdUnit()Output only. Top mostAd 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()
publicByteStringgetEffectiveRootAdUnitBytes()Output only. Top mostAd 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()
publicStringgetName()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()
publicByteStringgetNameBytes()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()
publicStringgetNetworkCode()Output only. Network Code.
optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String | The networkCode. |
getNetworkCodeBytes()
publicByteStringgetNetworkCodeBytes()Output only. Network Code.
optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString | The bytes for networkCode. |
getNetworkId()
publiclonggetNetworkId()Output only. Network ID.
optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long | The networkId. |
getParserForType()
publicParser<Network>getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Network> | |
getPropertyCode()
publicStringgetPropertyCode()Output only. Property code.
optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String | The propertyCode. |
getPropertyCodeBytes()
publicByteStringgetPropertyCodeBytes()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)
publicStringgetSecondaryCurrencyCodes(intindex)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)
publicByteStringgetSecondaryCurrencyCodesBytes(intindex)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()
publicintgetSecondaryCurrencyCodesCount()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()
publicProtocolStringListgetSecondaryCurrencyCodesList()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. |
getSerializedSize()
publicintgetSerializedSize()| Returns | |
|---|---|
| Type | Description |
int | |
getTestNetwork()
publicbooleangetTestNetwork()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()
publicStringgetTimeZone()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()
publicByteStringgetTimeZoneBytes()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()
publicbooleanhasCurrencyCode()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()
publicbooleanhasDisplayName()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()
publicbooleanhasEffectiveRootAdUnit()Output only. Top mostAd 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()
publicbooleanhasNetworkCode()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()
publicbooleanhasNetworkId()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()
publicbooleanhasPropertyCode()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()
publicbooleanhasTestNetwork()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()
publicbooleanhasTimeZone()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. |
hashCode()
publicinthashCode()| Returns | |
|---|---|
| Type | Description |
int | |
internalGetFieldAccessorTable()
protectedGeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable | |
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean | |
newBuilderForType()
publicNetwork.BuildernewBuilderForType()| Returns | |
|---|---|
| Type | Description |
Network.Builder | |
newBuilderForType(AbstractMessage.BuilderParent parent)
protectedNetwork.BuildernewBuilderForType(AbstractMessage.BuilderParentparent)| Parameter | |
|---|---|
| Name | Description |
parent | BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Network.Builder | |
toBuilder()
publicNetwork.BuildertoBuilder()| Returns | |
|---|---|
| Type | Description |
Network.Builder | |
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)| Parameter | |
|---|---|
| Name | Description |
output | CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-31 UTC.