public static final class User.Builder extends GeneratedMessageV3.Builder<User.Builder> implements UserOrBuilderA user.
Protobuf type google.shopping.merchant.accounts.v1beta.User
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > User.BuilderImplements
UserOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAccessRights(AccessRight value)
public User.Builder addAccessRights(AccessRight value)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AccessRightThe accessRights to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addAccessRightsValue(int value)
public User.Builder addAccessRightsValue(int value)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for accessRights to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addAllAccessRights(Iterable<? extends AccessRight> values)
public User.Builder addAllAccessRights(Iterable<? extends AccessRight> values)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.shopping.merchant.accounts.v1beta.AccessRight>The accessRights to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addAllAccessRightsValue(Iterable<Integer> values)
public User.Builder addAllAccessRightsValue(Iterable<Integer> values)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for accessRights to add. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public User.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
build()
public User build()| Returns | |
|---|---|
| Type | Description |
User |
|
buildPartial()
public User buildPartial()| Returns | |
|---|---|
| Type | Description |
User |
|
clear()
public User.Builder clear()| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
clearAccessRights()
public User.Builder clearAccessRights()Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public User.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
clearName()
public User.Builder clearName() Identifier. The resource name of the user.
Format: accounts/{account}/user/{email}
Use me to refer to your own email address, for example
accounts/{account}/users/me.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public User.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
clearState()
public User.Builder clearState()Output only. The state of the user.
.google.shopping.merchant.accounts.v1beta.User.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
clone()
public User.Builder clone()| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
getAccessRights(int index)
public AccessRight getAccessRights(int index)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
AccessRight |
The accessRights at the given index. |
getAccessRightsCount()
public int getAccessRightsCount()Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of accessRights. |
getAccessRightsList()
public List<AccessRight> getAccessRightsList()Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<AccessRight> |
A list containing the accessRights. |
getAccessRightsValue(int index)
public int getAccessRightsValue(int index)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of accessRights at the given index. |
getAccessRightsValueList()
public List<Integer> getAccessRightsValueList()Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for accessRights. |
getDefaultInstanceForType()
public User getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
User |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Identifier. The resource name of the user.
Format: accounts/{account}/user/{email}
Use me to refer to your own email address, for example
accounts/{account}/users/me.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the user.
Format: accounts/{account}/user/{email}
Use me to refer to your own email address, for example
accounts/{account}/users/me.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getState()
public User.State getState()Output only. The state of the user.
.google.shopping.merchant.accounts.v1beta.User.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
User.State |
The state. |
getStateValue()
public int getStateValue()Output only. The state of the user.
.google.shopping.merchant.accounts.v1beta.User.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public User.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public User.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
mergeFrom(User other)
public User.Builder mergeFrom(User other)| Parameter | |
|---|---|
| Name | Description |
other |
User |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final User.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setAccessRights(int index, AccessRight value)
public User.Builder setAccessRights(int index, AccessRight value)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
AccessRightThe accessRights to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setAccessRightsValue(int index, int value)
public User.Builder setAccessRightsValue(int index, int value)Optional. The access rights the user has.
repeated .google.shopping.merchant.accounts.v1beta.AccessRight access_rights = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for accessRights to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public User.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setName(String value)
public User.Builder setName(String value) Identifier. The resource name of the user.
Format: accounts/{account}/user/{email}
Use me to refer to your own email address, for example
accounts/{account}/users/me.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public User.Builder setNameBytes(ByteString value) Identifier. The resource name of the user.
Format: accounts/{account}/user/{email}
Use me to refer to your own email address, for example
accounts/{account}/users/me.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public User.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|
setState(User.State value)
public User.Builder setState(User.State value)Output only. The state of the user.
.google.shopping.merchant.accounts.v1beta.User.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
User.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setStateValue(int value)
public User.Builder setStateValue(int value)Output only. The state of the user.
.google.shopping.merchant.accounts.v1beta.User.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final User.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
User.Builder |
|