Class Network (0.4.0)

public final class Network extends GeneratedMessageV3 implements NetworkOrBuilder

The Network resource.

Protobuf type google.ads.admanager.v1.Network

Implements

NetworkOrBuilder

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()
Returns
Type Description
Network

getDescriptor()

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

newBuilder()

public static Network.Builder newBuilder()
Returns
Type Description
Network.Builder

newBuilder(Network prototype)

public static Network.Builder newBuilder(Network prototype)
Parameter
Name Description
prototype Network
Returns
Type Description
Network.Builder

parseDelimitedFrom(InputStream input)

public static Network parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Network parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Network parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Network parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Network parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Network parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Network parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Network
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Network> parser()
Returns
Type Description
Parser<Network>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<Network> getParserForType()
Returns
Type Description
Parser<Network>
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];

Returns
Type Description
ProtocolStringList

A list containing the secondaryCurrencyCodes.

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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Network.Builder newBuilderForType()
Returns
Type Description
Network.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Network.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Network.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Network.Builder toBuilder()
Returns
Type Description
Network.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException