Class Network (0.42.0)

publicfinalclassNetworkextendsGeneratedMessageimplementsNetworkOrBuilder

The Network resource.

Protobuf typegoogle.ads.admanager.v1.Network

Inherited Members

com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)

Static Fields

CURRENCY_CODE_FIELD_NUMBER

publicstaticfinalintCURRENCY_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

EFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER

publicstaticfinalintEFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_CODE_FIELD_NUMBER

publicstaticfinalintNETWORK_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_ID_FIELD_NUMBER

publicstaticfinalintNETWORK_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PROPERTY_CODE_FIELD_NUMBER

publicstaticfinalintPROPERTY_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

SECONDARY_CURRENCY_CODES_FIELD_NUMBER

publicstaticfinalintSECONDARY_CURRENCY_CODES_FIELD_NUMBER
Field Value
TypeDescription
int

TEST_NETWORK_FIELD_NUMBER

publicstaticfinalintTEST_NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_ZONE_FIELD_NUMBER

publicstaticfinalintTIME_ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticNetworkgetDefaultInstance()
Returns
TypeDescription
Network

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticNetwork.BuildernewBuilder()
Returns
TypeDescription
Network.Builder

newBuilder(Network prototype)

publicstaticNetwork.BuildernewBuilder(Networkprototype)
Parameter
NameDescription
prototypeNetwork
Returns
TypeDescription
Network.Builder

parseDelimitedFrom(InputStream input)

publicstaticNetworkparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticNetworkparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticNetworkparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticNetworkparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticNetworkparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticNetworkparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticNetworkparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Network
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<Network>parser()
Returns
TypeDescription
Parser<Network>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCurrencyCode()

publicStringgetCurrencyCode()

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

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

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

publicNetworkgetDefaultInstanceForType()
Returns
TypeDescription
Network

getDisplayName()

publicStringgetDisplayName()

Optional. Display name for Network.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

Optional. Display name for Network.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getNetworkCode()

publicStringgetNetworkCode()

Output only. Network Code.

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

Returns
TypeDescription
String

The networkCode.

getNetworkCodeBytes()

publicByteStringgetNetworkCodeBytes()

Output only. Network Code.

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

Returns
TypeDescription
ByteString

The bytes for networkCode.

getNetworkId()

publiclonggetNetworkId()

Output only. Network ID.

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

Returns
TypeDescription
long

The networkId.

getParserForType()

publicParser<Network>getParserForType()
Returns
TypeDescription
Parser<Network>
Overrides

getPropertyCode()

publicStringgetPropertyCode()

Output only. Property code.

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

Returns
TypeDescription
String

The propertyCode.

getPropertyCodeBytes()

publicByteStringgetPropertyCodeBytes()

Output only. Property code.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the secondaryCurrencyCodes.

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getTestNetwork()

publicbooleangetTestNetwork()

Output only. Whether this is a test network.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeZone field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicNetwork.BuildernewBuilderForType()
Returns
TypeDescription
Network.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protectedNetwork.BuildernewBuilderForType(AbstractMessage.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Network.Builder
Overrides

toBuilder()

publicNetwork.BuildertoBuilder()
Returns
TypeDescription
Network.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
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.