public final class Account extends GeneratedMessageV3 implements AccountOrBuilder
An account.
Protobuf type google.shopping.merchant.accounts.v1beta.Account
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ACCOUNT_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ACCOUNT_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ADULT_CONTENT_FIELD_NUMBER
public static final int ADULT_CONTENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TEST_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TIME_ZONE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Account getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Account.Builder newBuilder()
public static Account.Builder newBuilder(Account prototype)
Parameter |
Name |
Description |
prototype |
Account
|
public static Account parseDelimitedFrom(InputStream input)
public static Account parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Account parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static Account parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Account parseFrom(ByteString data)
public static Account parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Account parseFrom(CodedInputStream input)
public static Account parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Account parseFrom(InputStream input)
public static Account parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Account parseFrom(ByteBuffer data)
public static Account parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Account> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public long getAccountId()
Output only. The ID of the account.
int64 account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
long |
The accountId.
|
public String getAccountName()
Required. A human-readable name of the account. See
store name and
business name for
more information.
string account_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The accountName.
|
public ByteString getAccountNameBytes()
Required. A human-readable name of the account. See
store name and
business name for
more information.
string account_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for accountName.
|
getAdultContent()
public boolean getAdultContent()
Whether this account contains adult content.
bool adult_content = 4;
Returns |
Type |
Description |
boolean |
The adultContent.
|
public Account getDefaultInstanceForType()
public String getLanguageCode()
Required. The account's BCP-47 language
code, such as en-US
or sr-Latn
.
string language_code = 7 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The languageCode.
|
public ByteString getLanguageCodeBytes()
Required. The account's BCP-47 language
code, such as en-US
or sr-Latn
.
string language_code = 7 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for languageCode.
|
Identifier. The resource name of the account.
Format: accounts/{account}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
Identifier. The resource name of the account.
Format: accounts/{account}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
public Parser<Account> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean getTestAccount()
Output only. Whether this is a test account.
bool test_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
The testAccount.
|
public TimeZone getTimeZone()
Required. The time zone of the account.
On writes, time_zone
sets both the reporting_time_zone
and the
display_time_zone
.
For reads, time_zone
always returns the display_time_zone
. If
display_time_zone
doesn't exist for your account, time_zone
is empty.
.google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.TimeZone |
The timeZone.
|
public TimeZoneOrBuilder getTimeZoneOrBuilder()
Required. The time zone of the account.
On writes, time_zone
sets both the reporting_time_zone
and the
display_time_zone
.
For reads, time_zone
always returns the display_time_zone
. If
display_time_zone
doesn't exist for your account, time_zone
is empty.
.google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
com.google.type.TimeZoneOrBuilder |
|
public boolean hasTimeZone()
Required. The time zone of the account.
On writes, time_zone
sets both the reporting_time_zone
and the
display_time_zone
.
For reads, time_zone
always returns the display_time_zone
. If
display_time_zone
doesn't exist for your account, time_zone
is empty.
.google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the timeZone field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Account.Builder newBuilderForType()
protected Account.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Account.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides