Class Company (0.6.0)

  public 
  
 final 
  
 class 
 Company 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 CompanyOrBuilder 
 

The Company resource.

Protobuf type google.ads.admanager.v1.Company

Implements

CompanyOrBuilder

Static Fields

ADDRESS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ADDRESS_FIELD_NUMBER 
 
Field Value
Type
Description
int

APPLIED_LABELS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 APPLIED_LABELS_FIELD_NUMBER 
 
Field Value
Type
Description
int

APPLIED_TEAMS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 APPLIED_TEAMS_FIELD_NUMBER 
 
Field Value
Type
Description
int

COMMENT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 COMMENT_FIELD_NUMBER 
 
Field Value
Type
Description
int

COMPANY_ID_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 COMPANY_ID_FIELD_NUMBER 
 
Field Value
Type
Description
int

CREDIT_STATUS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CREDIT_STATUS_FIELD_NUMBER 
 
Field Value
Type
Description
int

DISPLAY_NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DISPLAY_NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

EMAIL_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 EMAIL_FIELD_NUMBER 
 
Field Value
Type
Description
int

EXTERNAL_ID_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 EXTERNAL_ID_FIELD_NUMBER 
 
Field Value
Type
Description
int

FAX_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 FAX_FIELD_NUMBER 
 
Field Value
Type
Description
int

NAME_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NAME_FIELD_NUMBER 
 
Field Value
Type
Description
int

PHONE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PHONE_FIELD_NUMBER 
 
Field Value
Type
Description
int

PRIMARY_CONTACT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PRIMARY_CONTACT_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 
  
 Company 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

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

newBuilder()

  public 
  
 static 
  
 Company 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Company prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAddress()

  public 
  
 String 
  
 getAddress 
 () 
 

Optional. The address for the Company .

This value has a maximum length of 1024 characters.

string address = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The address.

getAddressBytes()

  public 
  
 ByteString 
  
 getAddressBytes 
 () 
 

Optional. The address for the Company .

This value has a maximum length of 1024 characters.

string address = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for address.

getAppliedLabels(int index)

  public 
  
 AppliedLabel 
  
 getAppliedLabels 
 ( 
 int 
  
 index 
 ) 
 

Optional. The labels that are directly applied to this company.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getAppliedLabelsCount()

  public 
  
 int 
  
 getAppliedLabelsCount 
 () 
 

Optional. The labels that are directly applied to this company.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
int

getAppliedLabelsList()

  public 
  
 List<AppliedLabel> 
  
 getAppliedLabelsList 
 () 
 

Optional. The labels that are directly applied to this company.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getAppliedLabelsOrBuilder(int index)

  public 
  
 AppliedLabelOrBuilder 
  
 getAppliedLabelsOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

Optional. The labels that are directly applied to this company.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name
Description
index
int
Returns
Type
Description

getAppliedLabelsOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 AppliedLabelOrBuilder 
>  
 getAppliedLabelsOrBuilderList 
 () 
 

Optional. The labels that are directly applied to this company.

repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
List < ? extends com.google.ads.admanager.v1.AppliedLabelOrBuilder >

getAppliedTeams(int index)

  public 
  
 String 
  
 getAppliedTeams 
 ( 
 int 
  
 index 
 ) 
 

Optional. The resource names of Teams that are directly associated with this company. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name
Description
index
int

The index of the element to return.

Returns
Type
Description

The appliedTeams at the given index.

getAppliedTeamsBytes(int index)

  public 
  
 ByteString 
  
 getAppliedTeamsBytes 
 ( 
 int 
  
 index 
 ) 
 

Optional. The resource names of Teams that are directly associated with this company. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name
Description
index
int

The index of the value to return.

Returns
Type
Description

The bytes of the appliedTeams at the given index.

getAppliedTeamsCount()

  public 
  
 int 
  
 getAppliedTeamsCount 
 () 
 

Optional. The resource names of Teams that are directly associated with this company. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type
Description
int

The count of appliedTeams.

getAppliedTeamsList()

  public 
  
 ProtocolStringList 
  
 getAppliedTeamsList 
 () 
 

Optional. The resource names of Teams that are directly associated with this company. Format: "networks/{network_code}/teams/{team_id}"

repeated string applied_teams = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type
Description

A list containing the appliedTeams.

getComment()

  public 
  
 String 
  
 getComment 
 () 
 

Optional. Comments about the Company .

This value has a maximum length of 1024 characters.

string comment = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The comment.

getCommentBytes()

  public 
  
 ByteString 
  
 getCommentBytes 
 () 
 

Optional. Comments about the Company .

This value has a maximum length of 1024 characters.

string comment = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for comment.

getCompanyId()

  public 
  
 long 
  
 getCompanyId 
 () 
 

Output only. Company ID.

int64 company_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

The companyId.

getCreditStatus()

  public 
  
 CompanyCreditStatusEnum 
 . 
 CompanyCreditStatus 
  
 getCreditStatus 
 () 
 

Optional. The credit status of this company.

This attribute defaults to ACTIVE if basic settings are enabled and ON_HOLD if advance settings are enabled.

.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getCreditStatusValue()

  public 
  
 int 
  
 getCreditStatusValue 
 () 
 

Optional. The credit status of this company.

This attribute defaults to ACTIVE if basic settings are enabled and ON_HOLD if advance settings are enabled.

.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description
int

The enum numeric value on the wire for creditStatus.

getDefaultInstanceForType()

  public 
  
 Company 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDisplayName()

  public 
  
 String 
  
 getDisplayName 
 () 
 

Required. The display name of the Company .

This value has a maximum length of 127 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

The displayName.

getDisplayNameBytes()

  public 
  
 ByteString 
  
 getDisplayNameBytes 
 () 
 

Required. The display name of the Company .

This value has a maximum length of 127 characters.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

The bytes for displayName.

getEmail()

  public 
  
 String 
  
 getEmail 
 () 
 

Optional. The email for the Company .

This value has a maximum length of 128 characters.

string email = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The email.

getEmailBytes()

  public 
  
 ByteString 
  
 getEmailBytes 
 () 
 

Optional. The email for the Company .

This value has a maximum length of 128 characters.

string email = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for email.

getExternalId()

  public 
  
 String 
  
 getExternalId 
 () 
 

Optional. The external ID for the Company .

This value has a maximum length of 255 characters.

string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The externalId.

getExternalIdBytes()

  public 
  
 ByteString 
  
 getExternalIdBytes 
 () 
 

Optional. The external ID for the Company .

This value has a maximum length of 255 characters.

string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for externalId.

getFax()

  public 
  
 String 
  
 getFax 
 () 
 

Optional. The fax number for the Company .

This value has a maximum length of 63 characters.

string fax = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The fax.

getFaxBytes()

  public 
  
 ByteString 
  
 getFaxBytes 
 () 
 

Optional. The fax number for the Company .

This value has a maximum length of 63 characters.

string fax = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for fax.

getName()

  public 
  
 String 
  
 getName 
 () 
 

Identifier. The resource name of the Company . Format: networks/{network_code}/companies/{company_id}

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

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

Identifier. The resource name of the Company . Format: networks/{network_code}/companies/{company_id}

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

Returns
Type
Description

The bytes for name.

getParserForType()

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

getPhone()

  public 
  
 String 
  
 getPhone 
 () 
 

Optional. The phone number for the Company .

This value has a maximum length of 63 characters.

string phone = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The phone.

getPhoneBytes()

  public 
  
 ByteString 
  
 getPhoneBytes 
 () 
 

Optional. The phone number for the Company .

This value has a maximum length of 63 characters.

string phone = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for phone.

getPrimaryContact()

  public 
  
 String 
  
 getPrimaryContact 
 () 
 

Optional. The resource names of primary Contact of this company. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type
Description

The primaryContact.

getPrimaryContactBytes()

  public 
  
 ByteString 
  
 getPrimaryContactBytes 
 () 
 

Optional. The resource names of primary Contact of this company. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type
Description

The bytes for primaryContact.

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getType()

  public 
  
 CompanyTypeEnum 
 . 
 CompanyType 
  
 getType 
 () 
 

Required. The type of the Company .

.google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description

getTypeValue()

  public 
  
 int 
  
 getTypeValue 
 () 
 

Required. The type of the Company .

.google.ads.admanager.v1.CompanyTypeEnum.CompanyType type = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type
Description
int

The enum numeric value on the wire for type.

hasPrimaryContact()

  public 
  
 boolean 
  
 hasPrimaryContact 
 () 
 

Optional. The resource names of primary Contact of this company. Format: "networks/{network_code}/contacts/{contact_id}"

optional string primary_contact = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type
Description

Whether the primaryContact field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Company 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

  public 
  
 Company 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: