Class CustomerClient
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.CustomerClient
- All Implemented Interfaces:
CustomerClientOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class CustomerClient
extends com.google.protobuf.GeneratedMessageV3
implements CustomerClientOrBuilder
A link between the given customer and a client customer. CustomerClients only exist for manager customers. All direct and indirect client customers are included, as well as the manager itself.Protobuf type
google.ads.googleads.v18.resources.CustomerClient- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA link between the given customer and a client customer.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAppliedLabels(int index) Output only.com.google.protobuf.ByteStringgetAppliedLabelsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static CustomerClientOutput only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.DescriptorbooleanOutput only.longgetId()Output only.longgetLevel()Output only.booleanOutput only.com.google.protobuf.Parser<CustomerClient>Output only.com.google.protobuf.ByteStringOutput only.intOutput only.intOutput only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.booleanhasId()Output only.booleanhasLevel()Output only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CustomerClient.Builderstatic CustomerClient.BuildernewBuilder(CustomerClient prototype) protected CustomerClient.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CustomerClientparseDelimitedFrom(InputStream input) static CustomerClientparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerClientparseFrom(byte[] data) static CustomerClientparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerClientparseFrom(com.google.protobuf.ByteString data) static CustomerClientparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerClientparseFrom(com.google.protobuf.CodedInputStream input) static CustomerClientparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerClientparseFrom(InputStream input) static CustomerClientparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CustomerClientparseFrom(ByteBuffer data) static CustomerClientparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CustomerClient>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER- See Also:
-
CLIENT_CUSTOMER_FIELD_NUMBER
public static final int CLIENT_CUSTOMER_FIELD_NUMBER- See Also:
-
HIDDEN_FIELD_NUMBER
public static final int HIDDEN_FIELD_NUMBER- See Also:
-
LEVEL_FIELD_NUMBER
public static final int LEVEL_FIELD_NUMBER- See Also:
-
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER- See Also:
-
TEST_ACCOUNT_FIELD_NUMBER
public static final int TEST_ACCOUNT_FIELD_NUMBER- See Also:
-
MANAGER_FIELD_NUMBER
public static final int MANAGER_FIELD_NUMBER- See Also:
-
DESCRIPTIVE_NAME_FIELD_NUMBER
public static final int DESCRIPTIVE_NAME_FIELD_NUMBER- See Also:
-
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
APPLIED_LABELS_FIELD_NUMBER
public static final int APPLIED_LABELS_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getResourceName
Output only. The resource name of the customer client. CustomerClient resource names have the form: `customers/{customer_id}/customerClients/{client_customer_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCustomerClientOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the customer client. CustomerClient resource names have the form: `customers/{customer_id}/customerClients/{client_customer_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCustomerClientOrBuilder- Returns:
- The bytes for resourceName.
-
hasClientCustomer
public boolean hasClientCustomer()Output only. The resource name of the client-customer which is linked to the given customer. Read only.
optional string client_customer = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
hasClientCustomerin interfaceCustomerClientOrBuilder- Returns:
- Whether the clientCustomer field is set.
-
getClientCustomer
Output only. The resource name of the client-customer which is linked to the given customer. Read only.
optional string client_customer = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getClientCustomerin interfaceCustomerClientOrBuilder- Returns:
- The clientCustomer.
-
getClientCustomerBytes
public com.google.protobuf.ByteString getClientCustomerBytes()Output only. The resource name of the client-customer which is linked to the given customer. Read only.
optional string client_customer = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getClientCustomerBytesin interfaceCustomerClientOrBuilder- Returns:
- The bytes for clientCustomer.
-
hasHidden
public boolean hasHidden()Output only. Specifies whether this is a [hidden account](https://support.google.com/google-ads/answer/7519830). Read only.
optional bool hidden = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasHiddenin interfaceCustomerClientOrBuilder- Returns:
- Whether the hidden field is set.
-
getHidden
public boolean getHidden()Output only. Specifies whether this is a [hidden account](https://support.google.com/google-ads/answer/7519830). Read only.
optional bool hidden = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHiddenin interfaceCustomerClientOrBuilder- Returns:
- The hidden.
-
hasLevel
public boolean hasLevel()Output only. Distance between given customer and client. For self link, the level value will be 0. Read only.
optional int64 level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLevelin interfaceCustomerClientOrBuilder- Returns:
- Whether the level field is set.
-
getLevel
public long getLevel()Output only. Distance between given customer and client. For self link, the level value will be 0. Read only.
optional int64 level = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLevelin interfaceCustomerClientOrBuilder- Returns:
- The level.
-
hasTimeZone
public boolean hasTimeZone()Output only. Common Locale Data Repository (CLDR) string representation of the time zone of the client, for example, America/Los_Angeles. Read only.
optional string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTimeZonein interfaceCustomerClientOrBuilder- Returns:
- Whether the timeZone field is set.
-
getTimeZone
Output only. Common Locale Data Repository (CLDR) string representation of the time zone of the client, for example, America/Los_Angeles. Read only.
optional string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTimeZonein interfaceCustomerClientOrBuilder- Returns:
- The timeZone.
-
getTimeZoneBytes
public com.google.protobuf.ByteString getTimeZoneBytes()Output only. Common Locale Data Repository (CLDR) string representation of the time zone of the client, for example, America/Los_Angeles. Read only.
optional string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTimeZoneBytesin interfaceCustomerClientOrBuilder- Returns:
- The bytes for timeZone.
-
hasTestAccount
public boolean hasTestAccount()Output only. Identifies if the client is a test account. Read only.
optional bool test_account = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTestAccountin interfaceCustomerClientOrBuilder- Returns:
- Whether the testAccount field is set.
-
getTestAccount
public boolean getTestAccount()Output only. Identifies if the client is a test account. Read only.
optional bool test_account = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTestAccountin interfaceCustomerClientOrBuilder- Returns:
- The testAccount.
-
hasManager
public boolean hasManager()Output only. Identifies if the client is a manager. Read only.
optional bool manager = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasManagerin interfaceCustomerClientOrBuilder- Returns:
- Whether the manager field is set.
-
getManager
public boolean getManager()Output only. Identifies if the client is a manager. Read only.
optional bool manager = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getManagerin interfaceCustomerClientOrBuilder- Returns:
- The manager.
-
hasDescriptiveName
public boolean hasDescriptiveName()Output only. Descriptive name for the client. Read only.
optional string descriptive_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDescriptiveNamein interfaceCustomerClientOrBuilder- Returns:
- Whether the descriptiveName field is set.
-
getDescriptiveName
Output only. Descriptive name for the client. Read only.
optional string descriptive_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptiveNamein interfaceCustomerClientOrBuilder- Returns:
- The descriptiveName.
-
getDescriptiveNameBytes
public com.google.protobuf.ByteString getDescriptiveNameBytes()Output only. Descriptive name for the client. Read only.
optional string descriptive_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptiveNameBytesin interfaceCustomerClientOrBuilder- Returns:
- The bytes for descriptiveName.
-
hasCurrencyCode
public boolean hasCurrencyCode()Output only. Currency code (for example, 'USD', 'EUR') for the client. Read only.
optional string currency_code = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCurrencyCodein interfaceCustomerClientOrBuilder- Returns:
- Whether the currencyCode field is set.
-
getCurrencyCode
Output only. Currency code (for example, 'USD', 'EUR') for the client. Read only.
optional string currency_code = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrencyCodein interfaceCustomerClientOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()Output only. Currency code (for example, 'USD', 'EUR') for the client. Read only.
optional string currency_code = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrencyCodeBytesin interfaceCustomerClientOrBuilder- Returns:
- The bytes for currencyCode.
-
hasId
public boolean hasId()Output only. The ID of the client customer. Read only.
optional int64 id = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceCustomerClientOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. The ID of the client customer. Read only.
optional int64 id = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceCustomerClientOrBuilder- Returns:
- The id.
-
getAppliedLabelsList
public com.google.protobuf.ProtocolStringList getAppliedLabelsList()Output only. The resource names of the labels owned by the requesting customer that are applied to the client customer. Label resource names have the form: `customers/{customer_id}/labels/{label_id}`repeated string applied_labels = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getAppliedLabelsListin interfaceCustomerClientOrBuilder- Returns:
- A list containing the appliedLabels.
-
getAppliedLabelsCount
public int getAppliedLabelsCount()Output only. The resource names of the labels owned by the requesting customer that are applied to the client customer. Label resource names have the form: `customers/{customer_id}/labels/{label_id}`repeated string applied_labels = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getAppliedLabelsCountin interfaceCustomerClientOrBuilder- Returns:
- The count of appliedLabels.
-
getAppliedLabels
Output only. The resource names of the labels owned by the requesting customer that are applied to the client customer. Label resource names have the form: `customers/{customer_id}/labels/{label_id}`repeated string applied_labels = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getAppliedLabelsin interfaceCustomerClientOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The appliedLabels at the given index.
-
getAppliedLabelsBytes
public com.google.protobuf.ByteString getAppliedLabelsBytes(int index) Output only. The resource names of the labels owned by the requesting customer that are applied to the client customer. Label resource names have the form: `customers/{customer_id}/labels/{label_id}`repeated string applied_labels = 21 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getAppliedLabelsBytesin interfaceCustomerClientOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the appliedLabels at the given index.
-
getStatusValue
public int getStatusValue()Output only. The status of the client customer. Read only.
.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceCustomerClientOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
Output only. The status of the client customer. Read only.
.google.ads.googleads.v18.enums.CustomerStatusEnum.CustomerStatus status = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceCustomerClientOrBuilder- Returns:
- The status.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CustomerClient parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerClient parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerClient parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerClient parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerClient parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CustomerClient parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CustomerClient parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CustomerClient parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CustomerClient parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CustomerClient parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CustomerClient.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-