Class Contact (0.39.0)

  public 
  
 final 
  
 class 
 Contact 
  
 extends 
  
 GeneratedMessageV3 
  
 implements 
  
 ContactOrBuilder 
 

A contact represents a person who is affiliated with a single company. A contact can have a variety of contact information associated to it, and can be invited to view their company's orders, line items, creatives, and reports.

Protobuf type google.ads.admanager.v1.Contact

Implements

ContactOrBuilder

Static Fields

ADDRESS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ADDRESS_FIELD_NUMBER 
 
Field Value
Type
Description
int

CELL_PHONE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 CELL_PHONE_FIELD_NUMBER 
 
Field Value
Type
Description
int

COMMENT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 COMMENT_FIELD_NUMBER 
 
Field Value
Type
Description
int

COMPANY_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 COMPANY_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

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

STATUS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 STATUS_FIELD_NUMBER 
 
Field Value
Type
Description
int

TITLE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TITLE_FIELD_NUMBER 
 
Field Value
Type
Description
int

WORK_PHONE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 WORK_PHONE_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Contact 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

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

newBuilder()

  public 
  
 static 
  
 Contact 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Contact prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

  public 
  
 static 
  
 Parser<Contact> 
  
 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 of the contact. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

The address.

getAddressBytes()

  public 
  
 ByteString 
  
 getAddressBytes 
 () 
 

Optional. The address of the contact. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

The bytes for address.

getCellPhone()

  public 
  
 String 
  
 getCellPhone 
 () 
 

Optional. The cell phone number where the contact can be reached.

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

Returns
Type
Description

The cellPhone.

getCellPhoneBytes()

  public 
  
 ByteString 
  
 getCellPhoneBytes 
 () 
 

Optional. The cell phone number where the contact can be reached.

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

Returns
Type
Description

The bytes for cellPhone.

getComment()

  public 
  
 String 
  
 getComment 
 () 
 

Optional. A free-form text comment for the contact. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

The comment.

getCommentBytes()

  public 
  
 ByteString 
  
 getCommentBytes 
 () 
 

Optional. A free-form text comment for the contact. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

The bytes for comment.

getCompany()

  public 
  
 String 
  
 getCompany 
 () 
 

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

optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type
Description

The company.

getCompanyBytes()

  public 
  
 ByteString 
  
 getCompanyBytes 
 () 
 

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

optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type
Description

The bytes for company.

getDefaultInstanceForType()

  public 
  
 Contact 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDisplayName()

  public 
  
 String 
  
 getDisplayName 
 () 
 

Required. The name of the contact. This attribute has a maximum length of 127 characters.

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

Returns
Type
Description

The displayName.

getDisplayNameBytes()

  public 
  
 ByteString 
  
 getDisplayNameBytes 
 () 
 

Required. The name of the contact. This attribute has a maximum length of 127 characters.

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

Returns
Type
Description

The bytes for displayName.

getEmail()

  public 
  
 String 
  
 getEmail 
 () 
 

Optional. The e-mail address where the contact can be reached. This attribute has a maximum length of 128 characters.

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

Returns
Type
Description

The email.

getEmailBytes()

  public 
  
 ByteString 
  
 getEmailBytes 
 () 
 

Optional. The e-mail address where the contact can be reached. This attribute has a maximum length of 128 characters.

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

Returns
Type
Description

The bytes for email.

getFax()

  public 
  
 String 
  
 getFax 
 () 
 

Optional. The fax number where the contact can be reached. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

The fax.

getFaxBytes()

  public 
  
 ByteString 
  
 getFaxBytes 
 () 
 

Optional. The fax number where the contact can be reached. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

The bytes for fax.

getName()

  public 
  
 String 
  
 getName 
 () 
 

Identifier. The resource name of the Contact . Format: networks/{network_code}/contacts/{contact_id}

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

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

Identifier. The resource name of the Contact . Format: networks/{network_code}/contacts/{contact_id}

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

Returns
Type
Description

The bytes for name.

getParserForType()

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

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getStatus()

  public 
  
 ContactStatusEnum 
 . 
 ContactStatus 
  
 getStatus 
 () 
 

Output only. The status of the contact. This attribute is assigned by Google.

optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

getStatusValue()

  public 
  
 int 
  
 getStatusValue 
 () 
 

Output only. The status of the contact. This attribute is assigned by Google.

optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description
int

The enum numeric value on the wire for status.

getTitle()

  public 
  
 String 
  
 getTitle 
 () 
 

Optional. The job title of the contact. This attribute has a maximum length of 1024 characters.

optional string title = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The title.

getTitleBytes()

  public 
  
 ByteString 
  
 getTitleBytes 
 () 
 

Optional. The job title of the contact. This attribute has a maximum length of 1024 characters.

optional string title = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for title.

getWorkPhone()

  public 
  
 String 
  
 getWorkPhone 
 () 
 

Optional. The work phone number where the contact can be reached. This attribute has a maximum length of 1024 characters.

optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The workPhone.

getWorkPhoneBytes()

  public 
  
 ByteString 
  
 getWorkPhoneBytes 
 () 
 

Optional. The work phone number where the contact can be reached. This attribute has a maximum length of 1024 characters.

optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for workPhone.

hasAddress()

  public 
  
 boolean 
  
 hasAddress 
 () 
 

Optional. The address of the contact. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

Whether the address field is set.

hasCellPhone()

  public 
  
 boolean 
  
 hasCellPhone 
 () 
 

Optional. The cell phone number where the contact can be reached.

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

Returns
Type
Description

Whether the cellPhone field is set.

hasComment()

  public 
  
 boolean 
  
 hasComment 
 () 
 

Optional. A free-form text comment for the contact. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

Whether the comment field is set.

hasCompany()

  public 
  
 boolean 
  
 hasCompany 
 () 
 

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

optional string company = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type
Description

Whether the company field is set.

hasDisplayName()

  public 
  
 boolean 
  
 hasDisplayName 
 () 
 

Required. The name of the contact. This attribute has a maximum length of 127 characters.

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

Returns
Type
Description

Whether the displayName field is set.

hasEmail()

  public 
  
 boolean 
  
 hasEmail 
 () 
 

Optional. The e-mail address where the contact can be reached. This attribute has a maximum length of 128 characters.

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

Returns
Type
Description

Whether the email field is set.

hasFax()

  public 
  
 boolean 
  
 hasFax 
 () 
 

Optional. The fax number where the contact can be reached. This attribute has a maximum length of 1024 characters.

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

Returns
Type
Description

Whether the fax field is set.

hasStatus()

  public 
  
 boolean 
  
 hasStatus 
 () 
 

Output only. The status of the contact. This attribute is assigned by Google.

optional .google.ads.admanager.v1.ContactStatusEnum.ContactStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type
Description

Whether the status field is set.

hasTitle()

  public 
  
 boolean 
  
 hasTitle 
 () 
 

Optional. The job title of the contact. This attribute has a maximum length of 1024 characters.

optional string title = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the title field is set.

hasWorkPhone()

  public 
  
 boolean 
  
 hasWorkPhone 
 () 
 

Optional. The work phone number where the contact can be reached. This attribute has a maximum length of 1024 characters.

optional string work_phone = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the workPhone 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 
  
 Contact 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Contact 
 . 
 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 
  
 Contact 
 . 
 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: