Class Account.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
ru.tinkoff.piapi.contract.v1.Account.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, AccountOrBuilder
Enclosing class:
Account

public static final class Account.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder> implements AccountOrBuilder
Информация о счёте.
 
Protobuf type tinkoff.public.invest.api.contract.v1.Account
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • clear

      public Account.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • getDefaultInstanceForType

      public Account getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Account build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Account buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Account.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • setField

      public Account.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • clearField

      public Account.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • clearOneof

      public Account.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • setRepeatedField

      public Account.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • addRepeatedField

      public Account.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • mergeFrom

      public Account.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Account.Builder>
    • mergeFrom

      public Account.Builder mergeFrom(Account other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • mergeFrom

      public Account.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Account.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Идентификатор счёта.
       
      string id = 1;
      Specified by:
      getId in interface AccountOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Идентификатор счёта.
       
      string id = 1;
      Specified by:
      getIdBytes in interface AccountOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Account.Builder setId(String value)
       Идентификатор счёта.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Account.Builder clearId()
       Идентификатор счёта.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public Account.Builder setIdBytes(com.google.protobuf.ByteString value)
       Идентификатор счёта.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Тип счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountType type = 2;
      Specified by:
      getTypeValue in interface AccountOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Account.Builder setTypeValue(int value)
       Тип счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountType type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public AccountType getType()
       Тип счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountType type = 2;
      Specified by:
      getType in interface AccountOrBuilder
      Returns:
      The type.
    • setType

      public Account.Builder setType(AccountType value)
       Тип счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Account.Builder clearType()
       Тип счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountType type = 2;
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Название счёта.
       
      string name = 3;
      Specified by:
      getName in interface AccountOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Название счёта.
       
      string name = 3;
      Specified by:
      getNameBytes in interface AccountOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Account.Builder setName(String value)
       Название счёта.
       
      string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Account.Builder clearName()
       Название счёта.
       
      string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Account.Builder setNameBytes(com.google.protobuf.ByteString value)
       Название счёта.
       
      string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Статус счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountStatus status = 4;
      Specified by:
      getStatusValue in interface AccountOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public Account.Builder setStatusValue(int value)
       Статус счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountStatus status = 4;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public AccountStatus getStatus()
       Статус счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountStatus status = 4;
      Specified by:
      getStatus in interface AccountOrBuilder
      Returns:
      The status.
    • setStatus

      public Account.Builder setStatus(AccountStatus value)
       Статус счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountStatus status = 4;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public Account.Builder clearStatus()
       Статус счёта.
       
      .tinkoff.public.invest.api.contract.v1.AccountStatus status = 4;
      Returns:
      This builder for chaining.
    • hasOpenedDate

      public boolean hasOpenedDate()
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
      Specified by:
      hasOpenedDate in interface AccountOrBuilder
      Returns:
      Whether the openedDate field is set.
    • getOpenedDate

      public com.google.protobuf.Timestamp getOpenedDate()
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
      Specified by:
      getOpenedDate in interface AccountOrBuilder
      Returns:
      The openedDate.
    • setOpenedDate

      public Account.Builder setOpenedDate(com.google.protobuf.Timestamp value)
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
    • setOpenedDate

      public Account.Builder setOpenedDate(com.google.protobuf.Timestamp.Builder builderForValue)
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
    • mergeOpenedDate

      public Account.Builder mergeOpenedDate(com.google.protobuf.Timestamp value)
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
    • clearOpenedDate

      public Account.Builder clearOpenedDate()
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
    • getOpenedDateBuilder

      public com.google.protobuf.Timestamp.Builder getOpenedDateBuilder()
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
    • getOpenedDateOrBuilder

      public com.google.protobuf.TimestampOrBuilder getOpenedDateOrBuilder()
       Дата открытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp opened_date = 5;
      Specified by:
      getOpenedDateOrBuilder in interface AccountOrBuilder
    • hasClosedDate

      public boolean hasClosedDate()
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
      Specified by:
      hasClosedDate in interface AccountOrBuilder
      Returns:
      Whether the closedDate field is set.
    • getClosedDate

      public com.google.protobuf.Timestamp getClosedDate()
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
      Specified by:
      getClosedDate in interface AccountOrBuilder
      Returns:
      The closedDate.
    • setClosedDate

      public Account.Builder setClosedDate(com.google.protobuf.Timestamp value)
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
    • setClosedDate

      public Account.Builder setClosedDate(com.google.protobuf.Timestamp.Builder builderForValue)
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
    • mergeClosedDate

      public Account.Builder mergeClosedDate(com.google.protobuf.Timestamp value)
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
    • clearClosedDate

      public Account.Builder clearClosedDate()
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
    • getClosedDateBuilder

      public com.google.protobuf.Timestamp.Builder getClosedDateBuilder()
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
    • getClosedDateOrBuilder

      public com.google.protobuf.TimestampOrBuilder getClosedDateOrBuilder()
       Дата закрытия счёта в часовом поясе UTC.
       
      .google.protobuf.Timestamp closed_date = 6;
      Specified by:
      getClosedDateOrBuilder in interface AccountOrBuilder
    • getAccessLevelValue

      public int getAccessLevelValue()
       Уровень доступа к текущему счёту (определяется токеном).
       
      .tinkoff.public.invest.api.contract.v1.AccessLevel access_level = 7;
      Specified by:
      getAccessLevelValue in interface AccountOrBuilder
      Returns:
      The enum numeric value on the wire for accessLevel.
    • setAccessLevelValue

      public Account.Builder setAccessLevelValue(int value)
       Уровень доступа к текущему счёту (определяется токеном).
       
      .tinkoff.public.invest.api.contract.v1.AccessLevel access_level = 7;
      Parameters:
      value - The enum numeric value on the wire for accessLevel to set.
      Returns:
      This builder for chaining.
    • getAccessLevel

      public AccessLevel getAccessLevel()
       Уровень доступа к текущему счёту (определяется токеном).
       
      .tinkoff.public.invest.api.contract.v1.AccessLevel access_level = 7;
      Specified by:
      getAccessLevel in interface AccountOrBuilder
      Returns:
      The accessLevel.
    • setAccessLevel

      public Account.Builder setAccessLevel(AccessLevel value)
       Уровень доступа к текущему счёту (определяется токеном).
       
      .tinkoff.public.invest.api.contract.v1.AccessLevel access_level = 7;
      Parameters:
      value - The accessLevel to set.
      Returns:
      This builder for chaining.
    • clearAccessLevel

      public Account.Builder clearAccessLevel()
       Уровень доступа к текущему счёту (определяется токеном).
       
      .tinkoff.public.invest.api.contract.v1.AccessLevel access_level = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Account.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>
    • mergeUnknownFields

      public final Account.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Account.Builder>