Send feedback
Class Account (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]