Class ThirdPartyCompany (0.54.0)

public final class ThirdPartyCompany extends GeneratedMessage implements ThirdPartyCompanyOrBuilder

Represents a third-party company recognized by Google Ad Manager, which can be an ad network, ad server, or video technology partner.

Protobuf type google.ads.admanager.v1.ThirdPartyCompany

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ThirdPartyCompany getDefaultInstance()
Returns
Type Description
ThirdPartyCompany

getDescriptor()

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

newBuilder()

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

newBuilder(ThirdPartyCompany prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ThirdPartyCompany getDefaultInstanceForType()
Returns
Type Description
ThirdPartyCompany

getDisplayName()

public String getDisplayName()

Output only. The display name of the ThirdPartyCompany. This field must be unique among all ThirdPartyCompanies for this network.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name of the ThirdPartyCompany. This field must be unique among all ThirdPartyCompanies for this network.

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

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the ThirdPartyCompany. Format: networks/{network_code}/thirdPartyCompanies/{third_party_company_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the ThirdPartyCompany. Format: networks/{network_code}/thirdPartyCompanies/{third_party_company_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ThirdPartyCompany> getParserForType()
Returns
Type Description
Parser<ThirdPartyCompany>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStatus()

public ThirdPartyCompanyStatusEnum.ThirdPartyCompanyStatus getStatus()

Output only. The status of the ThirdPartyCompany. ThirdPartyCompanies are set to inactive rather than deleting them.

optional .google.ads.admanager.v1.ThirdPartyCompanyStatusEnum.ThirdPartyCompanyStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ThirdPartyCompanyStatusEnum.ThirdPartyCompanyStatus

The status.

getStatusValue()

public int getStatusValue()

Output only. The status of the ThirdPartyCompany. ThirdPartyCompanies are set to inactive rather than deleting them.

optional .google.ads.admanager.v1.ThirdPartyCompanyStatusEnum.ThirdPartyCompanyStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

getType()

public ThirdPartyCompanyTypeEnum.ThirdPartyCompanyType getType()

Output only. The type of the ThirdPartyCompany.

optional .google.ads.admanager.v1.ThirdPartyCompanyTypeEnum.ThirdPartyCompanyType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ThirdPartyCompanyTypeEnum.ThirdPartyCompanyType

The type.

getTypeValue()

public int getTypeValue()

Output only. The type of the ThirdPartyCompany.

optional .google.ads.admanager.v1.ThirdPartyCompanyTypeEnum.ThirdPartyCompanyType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasDisplayName()

public boolean hasDisplayName()

Output only. The display name of the ThirdPartyCompany. This field must be unique among all ThirdPartyCompanies for this network.

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

Returns
Type Description
boolean

Whether the displayName field is set.

hasStatus()

public boolean hasStatus()

Output only. The status of the ThirdPartyCompany. ThirdPartyCompanies are set to inactive rather than deleting them.

optional .google.ads.admanager.v1.ThirdPartyCompanyStatusEnum.ThirdPartyCompanyStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

hasType()

public boolean hasType()

Output only. The type of the ThirdPartyCompany.

optional .google.ads.admanager.v1.ThirdPartyCompanyTypeEnum.ThirdPartyCompanyType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the type field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ThirdPartyCompany.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ThirdPartyCompany.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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