All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.piapi.contract.v1.Strategy Maven / Gradle / Ivy

There is a newer version: 1.25
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: signals.proto

package ru.tinkoff.piapi.contract.v1;

/**
 * Protobuf type {@code tinkoff.public.invest.api.contract.v1.Strategy}
 */
public final class Strategy extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tinkoff.public.invest.api.contract.v1.Strategy)
    StrategyOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Strategy.newBuilder() to construct.
  private Strategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Strategy() {
    strategyId_ = "";
    strategyName_ = "";
    strategyDescription_ = "";
    strategyUrl_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Strategy();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return ru.tinkoff.piapi.contract.v1.Signals.internal_static_tinkoff_public_invest_api_contract_v1_Strategy_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return ru.tinkoff.piapi.contract.v1.Signals.internal_static_tinkoff_public_invest_api_contract_v1_Strategy_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ru.tinkoff.piapi.contract.v1.Strategy.class, ru.tinkoff.piapi.contract.v1.Strategy.Builder.class);
  }

  public static final int STRATEGY_ID_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object strategyId_ = "";
  /**
   * 
   *	Идентификатор стратегии
   * 
* * string strategy_id = 1; * @return The strategyId. */ @java.lang.Override public java.lang.String getStrategyId() { java.lang.Object ref = strategyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyId_ = s; return s; } } /** *
   *	Идентификатор стратегии
   * 
* * string strategy_id = 1; * @return The bytes for strategyId. */ @java.lang.Override public com.google.protobuf.ByteString getStrategyIdBytes() { java.lang.Object ref = strategyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STRATEGY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object strategyName_ = ""; /** *
   *	Название стратегии
   * 
* * string strategy_name = 2; * @return The strategyName. */ @java.lang.Override public java.lang.String getStrategyName() { java.lang.Object ref = strategyName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyName_ = s; return s; } } /** *
   *	Название стратегии
   * 
* * string strategy_name = 2; * @return The bytes for strategyName. */ @java.lang.Override public com.google.protobuf.ByteString getStrategyNameBytes() { java.lang.Object ref = strategyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STRATEGY_DESCRIPTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object strategyDescription_ = ""; /** *
   *	Описание стратегии
   * 
* * string strategy_description = 3; * @return The strategyDescription. */ @java.lang.Override public java.lang.String getStrategyDescription() { java.lang.Object ref = strategyDescription_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyDescription_ = s; return s; } } /** *
   *	Описание стратегии
   * 
* * string strategy_description = 3; * @return The bytes for strategyDescription. */ @java.lang.Override public com.google.protobuf.ByteString getStrategyDescriptionBytes() { java.lang.Object ref = strategyDescription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STRATEGY_URL_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object strategyUrl_ = ""; /** *
   *	Ссылка на страницу с описанием стратегии
   * 
* * string strategy_url = 4; * @return The strategyUrl. */ @java.lang.Override public java.lang.String getStrategyUrl() { java.lang.Object ref = strategyUrl_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyUrl_ = s; return s; } } /** *
   *	Ссылка на страницу с описанием стратегии
   * 
* * string strategy_url = 4; * @return The bytes for strategyUrl. */ @java.lang.Override public com.google.protobuf.ByteString getStrategyUrlBytes() { java.lang.Object ref = strategyUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strategyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, strategyName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyDescription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, strategyDescription_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, strategyUrl_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strategyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, strategyName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, strategyDescription_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strategyUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, strategyUrl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof ru.tinkoff.piapi.contract.v1.Strategy)) { return super.equals(obj); } ru.tinkoff.piapi.contract.v1.Strategy other = (ru.tinkoff.piapi.contract.v1.Strategy) obj; if (!getStrategyId() .equals(other.getStrategyId())) return false; if (!getStrategyName() .equals(other.getStrategyName())) return false; if (!getStrategyDescription() .equals(other.getStrategyDescription())) return false; if (!getStrategyUrl() .equals(other.getStrategyUrl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STRATEGY_ID_FIELD_NUMBER; hash = (53 * hash) + getStrategyId().hashCode(); hash = (37 * hash) + STRATEGY_NAME_FIELD_NUMBER; hash = (53 * hash) + getStrategyName().hashCode(); hash = (37 * hash) + STRATEGY_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getStrategyDescription().hashCode(); hash = (37 * hash) + STRATEGY_URL_FIELD_NUMBER; hash = (53 * hash) + getStrategyUrl().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.Strategy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.Strategy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static ru.tinkoff.piapi.contract.v1.Strategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(ru.tinkoff.piapi.contract.v1.Strategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tinkoff.public.invest.api.contract.v1.Strategy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tinkoff.public.invest.api.contract.v1.Strategy) ru.tinkoff.piapi.contract.v1.StrategyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return ru.tinkoff.piapi.contract.v1.Signals.internal_static_tinkoff_public_invest_api_contract_v1_Strategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return ru.tinkoff.piapi.contract.v1.Signals.internal_static_tinkoff_public_invest_api_contract_v1_Strategy_fieldAccessorTable .ensureFieldAccessorsInitialized( ru.tinkoff.piapi.contract.v1.Strategy.class, ru.tinkoff.piapi.contract.v1.Strategy.Builder.class); } // Construct using ru.tinkoff.piapi.contract.v1.Strategy.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; strategyId_ = ""; strategyName_ = ""; strategyDescription_ = ""; strategyUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return ru.tinkoff.piapi.contract.v1.Signals.internal_static_tinkoff_public_invest_api_contract_v1_Strategy_descriptor; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.Strategy getDefaultInstanceForType() { return ru.tinkoff.piapi.contract.v1.Strategy.getDefaultInstance(); } @java.lang.Override public ru.tinkoff.piapi.contract.v1.Strategy build() { ru.tinkoff.piapi.contract.v1.Strategy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.Strategy buildPartial() { ru.tinkoff.piapi.contract.v1.Strategy result = new ru.tinkoff.piapi.contract.v1.Strategy(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(ru.tinkoff.piapi.contract.v1.Strategy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.strategyId_ = strategyId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.strategyName_ = strategyName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.strategyDescription_ = strategyDescription_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.strategyUrl_ = strategyUrl_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof ru.tinkoff.piapi.contract.v1.Strategy) { return mergeFrom((ru.tinkoff.piapi.contract.v1.Strategy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(ru.tinkoff.piapi.contract.v1.Strategy other) { if (other == ru.tinkoff.piapi.contract.v1.Strategy.getDefaultInstance()) return this; if (!other.getStrategyId().isEmpty()) { strategyId_ = other.strategyId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getStrategyName().isEmpty()) { strategyName_ = other.strategyName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getStrategyDescription().isEmpty()) { strategyDescription_ = other.strategyDescription_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getStrategyUrl().isEmpty()) { strategyUrl_ = other.strategyUrl_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { strategyId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { strategyName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { strategyDescription_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { strategyUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object strategyId_ = ""; /** *
     *	Идентификатор стратегии
     * 
* * string strategy_id = 1; * @return The strategyId. */ public java.lang.String getStrategyId() { java.lang.Object ref = strategyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *	Идентификатор стратегии
     * 
* * string strategy_id = 1; * @return The bytes for strategyId. */ public com.google.protobuf.ByteString getStrategyIdBytes() { java.lang.Object ref = strategyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *	Идентификатор стратегии
     * 
* * string strategy_id = 1; * @param value The strategyId to set. * @return This builder for chaining. */ public Builder setStrategyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } strategyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     *	Идентификатор стратегии
     * 
* * string strategy_id = 1; * @return This builder for chaining. */ public Builder clearStrategyId() { strategyId_ = getDefaultInstance().getStrategyId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     *	Идентификатор стратегии
     * 
* * string strategy_id = 1; * @param value The bytes for strategyId to set. * @return This builder for chaining. */ public Builder setStrategyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); strategyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object strategyName_ = ""; /** *
     *	Название стратегии
     * 
* * string strategy_name = 2; * @return The strategyName. */ public java.lang.String getStrategyName() { java.lang.Object ref = strategyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *	Название стратегии
     * 
* * string strategy_name = 2; * @return The bytes for strategyName. */ public com.google.protobuf.ByteString getStrategyNameBytes() { java.lang.Object ref = strategyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *	Название стратегии
     * 
* * string strategy_name = 2; * @param value The strategyName to set. * @return This builder for chaining. */ public Builder setStrategyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } strategyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     *	Название стратегии
     * 
* * string strategy_name = 2; * @return This builder for chaining. */ public Builder clearStrategyName() { strategyName_ = getDefaultInstance().getStrategyName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     *	Название стратегии
     * 
* * string strategy_name = 2; * @param value The bytes for strategyName to set. * @return This builder for chaining. */ public Builder setStrategyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); strategyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object strategyDescription_ = ""; /** *
     *	Описание стратегии
     * 
* * string strategy_description = 3; * @return The strategyDescription. */ public java.lang.String getStrategyDescription() { java.lang.Object ref = strategyDescription_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyDescription_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *	Описание стратегии
     * 
* * string strategy_description = 3; * @return The bytes for strategyDescription. */ public com.google.protobuf.ByteString getStrategyDescriptionBytes() { java.lang.Object ref = strategyDescription_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *	Описание стратегии
     * 
* * string strategy_description = 3; * @param value The strategyDescription to set. * @return This builder for chaining. */ public Builder setStrategyDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } strategyDescription_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *	Описание стратегии
     * 
* * string strategy_description = 3; * @return This builder for chaining. */ public Builder clearStrategyDescription() { strategyDescription_ = getDefaultInstance().getStrategyDescription(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     *	Описание стратегии
     * 
* * string strategy_description = 3; * @param value The bytes for strategyDescription to set. * @return This builder for chaining. */ public Builder setStrategyDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); strategyDescription_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object strategyUrl_ = ""; /** *
     *	Ссылка на страницу с описанием стратегии
     * 
* * string strategy_url = 4; * @return The strategyUrl. */ public java.lang.String getStrategyUrl() { java.lang.Object ref = strategyUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); strategyUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *	Ссылка на страницу с описанием стратегии
     * 
* * string strategy_url = 4; * @return The bytes for strategyUrl. */ public com.google.protobuf.ByteString getStrategyUrlBytes() { java.lang.Object ref = strategyUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strategyUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *	Ссылка на страницу с описанием стратегии
     * 
* * string strategy_url = 4; * @param value The strategyUrl to set. * @return This builder for chaining. */ public Builder setStrategyUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } strategyUrl_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *	Ссылка на страницу с описанием стратегии
     * 
* * string strategy_url = 4; * @return This builder for chaining. */ public Builder clearStrategyUrl() { strategyUrl_ = getDefaultInstance().getStrategyUrl(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *	Ссылка на страницу с описанием стратегии
     * 
* * string strategy_url = 4; * @param value The bytes for strategyUrl to set. * @return This builder for chaining. */ public Builder setStrategyUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); strategyUrl_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tinkoff.public.invest.api.contract.v1.Strategy) } // @@protoc_insertion_point(class_scope:tinkoff.public.invest.api.contract.v1.Strategy) private static final ru.tinkoff.piapi.contract.v1.Strategy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new ru.tinkoff.piapi.contract.v1.Strategy(); } public static ru.tinkoff.piapi.contract.v1.Strategy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Strategy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public ru.tinkoff.piapi.contract.v1.Strategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy