Class CustomerUserAccessInvitation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomerUserAccessInvitation.Builder>
com.google.ads.googleads.v22.resources.CustomerUserAccessInvitation.Builder
- All Implemented Interfaces:
CustomerUserAccessInvitationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomerUserAccessInvitation
public static final class CustomerUserAccessInvitation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomerUserAccessInvitation.Builder>
implements CustomerUserAccessInvitationOrBuilder
Represent an invitation to a new user on this customer account.Protobuf type
google.ads.googleads.v22.resources.CustomerUserAccessInvitation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Immutable.Output only.Immutable.Output only.Output only.Immutable.Immutable.intImmutable.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorImmutable.com.google.protobuf.ByteStringImmutable.longOutput only.Output only.intOutput only.Immutable.com.google.protobuf.ByteStringImmutable.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Immutable.setAccessRoleValue(int value) Immutable.setCreationDateTime(String value) Output only.setCreationDateTimeBytes(com.google.protobuf.ByteString value) Output only.setEmailAddress(String value) Immutable.setEmailAddressBytes(com.google.protobuf.ByteString value) Immutable.setInvitationId(long value) Output only.Output only.setInvitationStatusValue(int value) Output only.setResourceName(String value) Immutable.setResourceNameBytes(com.google.protobuf.ByteString value) Immutable.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomerUserAccessInvitation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomerUserAccessInvitation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomerUserAccessInvitation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomerUserAccessInvitation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomerUserAccessInvitation.Builder>
-
mergeFrom
public CustomerUserAccessInvitation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomerUserAccessInvitation.Builder>- Throws:
IOException
-
getResourceName
Immutable. Name of the resource. Resource names have the form: `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Immutable. Name of the resource. Resource names have the form: `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Immutable. Name of the resource. Resource names have the form: `customers/{customer_id}/customerUserAccessInvitations/{invitation_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
Immutable. Name of the resource. Resource names have the form: `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CustomerUserAccessInvitation.Builder setResourceNameBytes(com.google.protobuf.ByteString value) Immutable. Name of the resource. Resource names have the form: `customers/{customer_id}/customerUserAccessInvitations/{invitation_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.
-
getInvitationId
public long getInvitationId()Output only. The ID of the invitation. This field is read-only.
int64 invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInvitationIdin interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The invitationId.
-
setInvitationId
Output only. The ID of the invitation. This field is read-only.
int64 invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The invitationId to set.- Returns:
- This builder for chaining.
-
clearInvitationId
Output only. The ID of the invitation. This field is read-only.
int64 invitation_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAccessRoleValue
public int getAccessRoleValue()Immutable. Access role of the user.
.google.ads.googleads.v22.enums.AccessRoleEnum.AccessRole access_role = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getAccessRoleValuein interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The enum numeric value on the wire for accessRole.
-
setAccessRoleValue
Immutable. Access role of the user.
.google.ads.googleads.v22.enums.AccessRoleEnum.AccessRole access_role = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for accessRole to set.- Returns:
- This builder for chaining.
-
getAccessRole
Immutable. Access role of the user.
.google.ads.googleads.v22.enums.AccessRoleEnum.AccessRole access_role = 3 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getAccessRolein interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The accessRole.
-
setAccessRole
Immutable. Access role of the user.
.google.ads.googleads.v22.enums.AccessRoleEnum.AccessRole access_role = 3 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The accessRole to set.- Returns:
- This builder for chaining.
-
clearAccessRole
Immutable. Access role of the user.
.google.ads.googleads.v22.enums.AccessRoleEnum.AccessRole access_role = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
getEmailAddress
Immutable. Email address the invitation was sent to. This can differ from the email address of the account that accepts the invite.
string email_address = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getEmailAddressin interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The emailAddress.
-
getEmailAddressBytes
public com.google.protobuf.ByteString getEmailAddressBytes()Immutable. Email address the invitation was sent to. This can differ from the email address of the account that accepts the invite.
string email_address = 4 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getEmailAddressBytesin interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The bytes for emailAddress.
-
setEmailAddress
Immutable. Email address the invitation was sent to. This can differ from the email address of the account that accepts the invite.
string email_address = 4 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The emailAddress to set.- Returns:
- This builder for chaining.
-
clearEmailAddress
Immutable. Email address the invitation was sent to. This can differ from the email address of the account that accepts the invite.
string email_address = 4 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setEmailAddressBytes
public CustomerUserAccessInvitation.Builder setEmailAddressBytes(com.google.protobuf.ByteString value) Immutable. Email address the invitation was sent to. This can differ from the email address of the account that accepts the invite.
string email_address = 4 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for emailAddress to set.- Returns:
- This builder for chaining.
-
getCreationDateTime
Output only. Time invitation was created. This field is read-only. The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationDateTimein interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The creationDateTime.
-
getCreationDateTimeBytes
public com.google.protobuf.ByteString getCreationDateTimeBytes()Output only. Time invitation was created. This field is read-only. The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationDateTimeBytesin interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The bytes for creationDateTime.
-
setCreationDateTime
Output only. Time invitation was created. This field is read-only. The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The creationDateTime to set.- Returns:
- This builder for chaining.
-
clearCreationDateTime
Output only. Time invitation was created. This field is read-only. The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCreationDateTimeBytes
public CustomerUserAccessInvitation.Builder setCreationDateTimeBytes(com.google.protobuf.ByteString value) Output only. Time invitation was created. This field is read-only. The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for creationDateTime to set.- Returns:
- This builder for chaining.
-
getInvitationStatusValue
public int getInvitationStatusValue()Output only. Invitation status of the user.
.google.ads.googleads.v22.enums.AccessInvitationStatusEnum.AccessInvitationStatus invitation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInvitationStatusValuein interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The enum numeric value on the wire for invitationStatus.
-
setInvitationStatusValue
Output only. Invitation status of the user.
.google.ads.googleads.v22.enums.AccessInvitationStatusEnum.AccessInvitationStatus invitation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for invitationStatus to set.- Returns:
- This builder for chaining.
-
getInvitationStatus
Output only. Invitation status of the user.
.google.ads.googleads.v22.enums.AccessInvitationStatusEnum.AccessInvitationStatus invitation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInvitationStatusin interfaceCustomerUserAccessInvitationOrBuilder- Returns:
- The invitationStatus.
-
setInvitationStatus
public CustomerUserAccessInvitation.Builder setInvitationStatus(AccessInvitationStatusEnum.AccessInvitationStatus value) Output only. Invitation status of the user.
.google.ads.googleads.v22.enums.AccessInvitationStatusEnum.AccessInvitationStatus invitation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The invitationStatus to set.- Returns:
- This builder for chaining.
-
clearInvitationStatus
Output only. Invitation status of the user.
.google.ads.googleads.v22.enums.AccessInvitationStatusEnum.AccessInvitationStatus invitation_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-