Class CustomerClientLink.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
- com.google.ads.googleads.v9.resources.CustomerClientLink.Builder
-
- All Implemented Interfaces:
CustomerClientLinkOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- CustomerClientLink
public static final class CustomerClientLink.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder> implements CustomerClientLinkOrBuilder
Represents customer client link relationship.
Protobuf typegoogle.ads.googleads.v9.resources.CustomerClientLink
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerClientLink.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CustomerClientLink
build()
CustomerClientLink
buildPartial()
CustomerClientLink.Builder
clear()
CustomerClientLink.Builder
clearClientCustomer()
Immutable.CustomerClientLink.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CustomerClientLink.Builder
clearHidden()
The visibility of the link.CustomerClientLink.Builder
clearManagerLinkId()
Output only.CustomerClientLink.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CustomerClientLink.Builder
clearResourceName()
Immutable.CustomerClientLink.Builder
clearStatus()
This is the status of the link between client and manager.CustomerClientLink.Builder
clone()
java.lang.String
getClientCustomer()
Immutable.com.google.protobuf.ByteString
getClientCustomerBytes()
Immutable.CustomerClientLink
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getHidden()
The visibility of the link.long
getManagerLinkId()
Output only.java.lang.String
getResourceName()
Immutable.com.google.protobuf.ByteString
getResourceNameBytes()
Immutable.ManagerLinkStatusEnum.ManagerLinkStatus
getStatus()
This is the status of the link between client and manager.int
getStatusValue()
This is the status of the link between client and manager.boolean
hasClientCustomer()
Immutable.boolean
hasHidden()
The visibility of the link.boolean
hasManagerLinkId()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CustomerClientLink.Builder
mergeFrom(CustomerClientLink other)
CustomerClientLink.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CustomerClientLink.Builder
mergeFrom(com.google.protobuf.Message other)
CustomerClientLink.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CustomerClientLink.Builder
setClientCustomer(java.lang.String value)
Immutable.CustomerClientLink.Builder
setClientCustomerBytes(com.google.protobuf.ByteString value)
Immutable.CustomerClientLink.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CustomerClientLink.Builder
setHidden(boolean value)
The visibility of the link.CustomerClientLink.Builder
setManagerLinkId(long value)
Output only.CustomerClientLink.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CustomerClientLink.Builder
setResourceName(java.lang.String value)
Immutable.CustomerClientLink.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable.CustomerClientLink.Builder
setStatus(ManagerLinkStatusEnum.ManagerLinkStatus value)
This is the status of the link between client and manager.CustomerClientLink.Builder
setStatusValue(int value)
This is the status of the link between client and manager.CustomerClientLink.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
clear
public CustomerClientLink.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
getDefaultInstanceForType
public CustomerClientLink getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomerClientLink build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomerClientLink buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomerClientLink.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
setField
public CustomerClientLink.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
clearField
public CustomerClientLink.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
clearOneof
public CustomerClientLink.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
setRepeatedField
public CustomerClientLink.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
addRepeatedField
public CustomerClientLink.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
mergeFrom
public CustomerClientLink.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomerClientLink.Builder>
-
mergeFrom
public CustomerClientLink.Builder mergeFrom(CustomerClientLink other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
mergeFrom
public CustomerClientLink.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomerClientLink.Builder>
- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Immutable. Name of the resource. CustomerClientLink resource names have the form: `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. Name of the resource. CustomerClientLink resource names have the form: `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public CustomerClientLink.Builder setResourceName(java.lang.String value)
Immutable. Name of the resource. CustomerClientLink resource names have the form: `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public CustomerClientLink.Builder clearResourceName()
Immutable. Name of the resource. CustomerClientLink resource names have the form: `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CustomerClientLink.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. Name of the resource. CustomerClientLink resource names have the form: `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasClientCustomer
public boolean hasClientCustomer()
Immutable. The client customer linked to this customer.
optional string client_customer = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
hasClientCustomer
in interfaceCustomerClientLinkOrBuilder
- Returns:
- Whether the clientCustomer field is set.
-
getClientCustomer
public java.lang.String getClientCustomer()
Immutable. The client customer linked to this customer.
optional string client_customer = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getClientCustomer
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The clientCustomer.
-
getClientCustomerBytes
public com.google.protobuf.ByteString getClientCustomerBytes()
Immutable. The client customer linked to this customer.
optional string client_customer = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getClientCustomerBytes
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The bytes for clientCustomer.
-
setClientCustomer
public CustomerClientLink.Builder setClientCustomer(java.lang.String value)
Immutable. The client customer linked to this customer.
optional string client_customer = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The clientCustomer to set.- Returns:
- This builder for chaining.
-
clearClientCustomer
public CustomerClientLink.Builder clearClientCustomer()
Immutable. The client customer linked to this customer.
optional string client_customer = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setClientCustomerBytes
public CustomerClientLink.Builder setClientCustomerBytes(com.google.protobuf.ByteString value)
Immutable. The client customer linked to this customer.
optional string client_customer = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for clientCustomer to set.- Returns:
- This builder for chaining.
-
hasManagerLinkId
public boolean hasManagerLinkId()
Output only. This is uniquely identifies a customer client link. Read only.
optional int64 manager_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasManagerLinkId
in interfaceCustomerClientLinkOrBuilder
- Returns:
- Whether the managerLinkId field is set.
-
getManagerLinkId
public long getManagerLinkId()
Output only. This is uniquely identifies a customer client link. Read only.
optional int64 manager_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getManagerLinkId
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The managerLinkId.
-
setManagerLinkId
public CustomerClientLink.Builder setManagerLinkId(long value)
Output only. This is uniquely identifies a customer client link. Read only.
optional int64 manager_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The managerLinkId to set.- Returns:
- This builder for chaining.
-
clearManagerLinkId
public CustomerClientLink.Builder clearManagerLinkId()
Output only. This is uniquely identifies a customer client link. Read only.
optional int64 manager_link_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
This is the status of the link between client and manager.
.google.ads.googleads.v9.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5;
- Specified by:
getStatusValue
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public CustomerClientLink.Builder setStatusValue(int value)
This is the status of the link between client and manager.
.google.ads.googleads.v9.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5;
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public ManagerLinkStatusEnum.ManagerLinkStatus getStatus()
This is the status of the link between client and manager.
.google.ads.googleads.v9.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5;
- Specified by:
getStatus
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The status.
-
setStatus
public CustomerClientLink.Builder setStatus(ManagerLinkStatusEnum.ManagerLinkStatus value)
This is the status of the link between client and manager.
.google.ads.googleads.v9.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public CustomerClientLink.Builder clearStatus()
This is the status of the link between client and manager.
.google.ads.googleads.v9.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5;
- Returns:
- This builder for chaining.
-
hasHidden
public boolean hasHidden()
The visibility of the link. Users can choose whether or not to see hidden links in the Google Ads UI. Default value is false
optional bool hidden = 9;
- Specified by:
hasHidden
in interfaceCustomerClientLinkOrBuilder
- Returns:
- Whether the hidden field is set.
-
getHidden
public boolean getHidden()
The visibility of the link. Users can choose whether or not to see hidden links in the Google Ads UI. Default value is false
optional bool hidden = 9;
- Specified by:
getHidden
in interfaceCustomerClientLinkOrBuilder
- Returns:
- The hidden.
-
setHidden
public CustomerClientLink.Builder setHidden(boolean value)
The visibility of the link. Users can choose whether or not to see hidden links in the Google Ads UI. Default value is false
optional bool hidden = 9;
- Parameters:
value
- The hidden to set.- Returns:
- This builder for chaining.
-
clearHidden
public CustomerClientLink.Builder clearHidden()
The visibility of the link. Users can choose whether or not to see hidden links in the Google Ads UI. Default value is false
optional bool hidden = 9;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CustomerClientLink.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
mergeUnknownFields
public final CustomerClientLink.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomerClientLink.Builder>
-
-