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

com.vendasta.sales.v1.generated.SalesTeamProto Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: sales/v1/sales_team.proto

package com.vendasta.sales.v1.generated;

public final class SalesTeamProto {
  private SalesTeamProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SalesTeamOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sales.v1.SalesTeam)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string team_name = 1;
     */
    java.lang.String getTeamName();
    /**
     * string team_name = 1;
     */
    com.google.protobuf.ByteString
        getTeamNameBytes();

    /**
     * string group_id = 2;
     */
    java.lang.String getGroupId();
    /**
     * string group_id = 2;
     */
    com.google.protobuf.ByteString
        getGroupIdBytes();

    /**
     * string partner_id = 3;
     */
    java.lang.String getPartnerId();
    /**
     * string partner_id = 3;
     */
    com.google.protobuf.ByteString
        getPartnerIdBytes();

    /**
     * string market_id = 4;
     */
    java.lang.String getMarketId();
    /**
     * string market_id = 4;
     */
    com.google.protobuf.ByteString
        getMarketIdBytes();

    /**
     * .google.protobuf.Timestamp updated = 5;
     */
    boolean hasUpdated();
    /**
     * .google.protobuf.Timestamp updated = 5;
     */
    com.google.protobuf.Timestamp getUpdated();
    /**
     * .google.protobuf.Timestamp updated = 5;
     */
    com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder();
  }
  /**
   * Protobuf type {@code sales.v1.SalesTeam}
   */
  public  static final class SalesTeam extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:sales.v1.SalesTeam)
      SalesTeamOrBuilder {
    // Use SalesTeam.newBuilder() to construct.
    private SalesTeam(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private SalesTeam() {
      teamName_ = "";
      groupId_ = "";
      partnerId_ = "";
      marketId_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private SalesTeam(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              teamName_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              groupId_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              partnerId_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              marketId_ = s;
              break;
            }
            case 42: {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (updated_ != null) {
                subBuilder = updated_.toBuilder();
              }
              updated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(updated_);
                updated_ = subBuilder.buildPartial();
              }

              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.vendasta.sales.v1.generated.SalesTeamProto.internal_static_sales_v1_SalesTeam_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.vendasta.sales.v1.generated.SalesTeamProto.internal_static_sales_v1_SalesTeam_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.class, com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.Builder.class);
    }

    public static final int TEAM_NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object teamName_;
    /**
     * string team_name = 1;
     */
    public java.lang.String getTeamName() {
      java.lang.Object ref = teamName_;
      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();
        teamName_ = s;
        return s;
      }
    }
    /**
     * string team_name = 1;
     */
    public com.google.protobuf.ByteString
        getTeamNameBytes() {
      java.lang.Object ref = teamName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        teamName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int GROUP_ID_FIELD_NUMBER = 2;
    private volatile java.lang.Object groupId_;
    /**
     * string group_id = 2;
     */
    public java.lang.String getGroupId() {
      java.lang.Object ref = groupId_;
      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();
        groupId_ = s;
        return s;
      }
    }
    /**
     * string group_id = 2;
     */
    public com.google.protobuf.ByteString
        getGroupIdBytes() {
      java.lang.Object ref = groupId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        groupId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PARTNER_ID_FIELD_NUMBER = 3;
    private volatile java.lang.Object partnerId_;
    /**
     * string partner_id = 3;
     */
    public java.lang.String getPartnerId() {
      java.lang.Object ref = partnerId_;
      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();
        partnerId_ = s;
        return s;
      }
    }
    /**
     * string partner_id = 3;
     */
    public com.google.protobuf.ByteString
        getPartnerIdBytes() {
      java.lang.Object ref = partnerId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        partnerId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MARKET_ID_FIELD_NUMBER = 4;
    private volatile java.lang.Object marketId_;
    /**
     * string market_id = 4;
     */
    public java.lang.String getMarketId() {
      java.lang.Object ref = marketId_;
      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();
        marketId_ = s;
        return s;
      }
    }
    /**
     * string market_id = 4;
     */
    public com.google.protobuf.ByteString
        getMarketIdBytes() {
      java.lang.Object ref = marketId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        marketId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int UPDATED_FIELD_NUMBER = 5;
    private com.google.protobuf.Timestamp updated_;
    /**
     * .google.protobuf.Timestamp updated = 5;
     */
    public boolean hasUpdated() {
      return updated_ != null;
    }
    /**
     * .google.protobuf.Timestamp updated = 5;
     */
    public com.google.protobuf.Timestamp getUpdated() {
      return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
    }
    /**
     * .google.protobuf.Timestamp updated = 5;
     */
    public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
      return getUpdated();
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getTeamNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, teamName_);
      }
      if (!getGroupIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupId_);
      }
      if (!getPartnerIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partnerId_);
      }
      if (!getMarketIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, marketId_);
      }
      if (updated_ != null) {
        output.writeMessage(5, getUpdated());
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getTeamNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, teamName_);
      }
      if (!getGroupIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupId_);
      }
      if (!getPartnerIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partnerId_);
      }
      if (!getMarketIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, marketId_);
      }
      if (updated_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, getUpdated());
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam)) {
        return super.equals(obj);
      }
      com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam other = (com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam) obj;

      boolean result = true;
      result = result && getTeamName()
          .equals(other.getTeamName());
      result = result && getGroupId()
          .equals(other.getGroupId());
      result = result && getPartnerId()
          .equals(other.getPartnerId());
      result = result && getMarketId()
          .equals(other.getMarketId());
      result = result && (hasUpdated() == other.hasUpdated());
      if (hasUpdated()) {
        result = result && getUpdated()
            .equals(other.getUpdated());
      }
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TEAM_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getTeamName().hashCode();
      hash = (37 * hash) + GROUP_ID_FIELD_NUMBER;
      hash = (53 * hash) + getGroupId().hashCode();
      hash = (37 * hash) + PARTNER_ID_FIELD_NUMBER;
      hash = (53 * hash) + getPartnerId().hashCode();
      hash = (37 * hash) + MARKET_ID_FIELD_NUMBER;
      hash = (53 * hash) + getMarketId().hashCode();
      if (hasUpdated()) {
        hash = (37 * hash) + UPDATED_FIELD_NUMBER;
        hash = (53 * hash) + getUpdated().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam 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 com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam 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 com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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 sales.v1.SalesTeam}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:sales.v1.SalesTeam)
        com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeamOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.vendasta.sales.v1.generated.SalesTeamProto.internal_static_sales_v1_SalesTeam_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.vendasta.sales.v1.generated.SalesTeamProto.internal_static_sales_v1_SalesTeam_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.class, com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.Builder.class);
      }

      // Construct using com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        teamName_ = "";

        groupId_ = "";

        partnerId_ = "";

        marketId_ = "";

        if (updatedBuilder_ == null) {
          updated_ = null;
        } else {
          updated_ = null;
          updatedBuilder_ = null;
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.vendasta.sales.v1.generated.SalesTeamProto.internal_static_sales_v1_SalesTeam_descriptor;
      }

      public com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam getDefaultInstanceForType() {
        return com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.getDefaultInstance();
      }

      public com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam build() {
        com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam buildPartial() {
        com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam result = new com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam(this);
        result.teamName_ = teamName_;
        result.groupId_ = groupId_;
        result.partnerId_ = partnerId_;
        result.marketId_ = marketId_;
        if (updatedBuilder_ == null) {
          result.updated_ = updated_;
        } else {
          result.updated_ = updatedBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam) {
          return mergeFrom((com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam other) {
        if (other == com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam.getDefaultInstance()) return this;
        if (!other.getTeamName().isEmpty()) {
          teamName_ = other.teamName_;
          onChanged();
        }
        if (!other.getGroupId().isEmpty()) {
          groupId_ = other.groupId_;
          onChanged();
        }
        if (!other.getPartnerId().isEmpty()) {
          partnerId_ = other.partnerId_;
          onChanged();
        }
        if (!other.getMarketId().isEmpty()) {
          marketId_ = other.marketId_;
          onChanged();
        }
        if (other.hasUpdated()) {
          mergeUpdated(other.getUpdated());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object teamName_ = "";
      /**
       * string team_name = 1;
       */
      public java.lang.String getTeamName() {
        java.lang.Object ref = teamName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          teamName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string team_name = 1;
       */
      public com.google.protobuf.ByteString
          getTeamNameBytes() {
        java.lang.Object ref = teamName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          teamName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string team_name = 1;
       */
      public Builder setTeamName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        teamName_ = value;
        onChanged();
        return this;
      }
      /**
       * string team_name = 1;
       */
      public Builder clearTeamName() {
        
        teamName_ = getDefaultInstance().getTeamName();
        onChanged();
        return this;
      }
      /**
       * string team_name = 1;
       */
      public Builder setTeamNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        teamName_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object groupId_ = "";
      /**
       * string group_id = 2;
       */
      public java.lang.String getGroupId() {
        java.lang.Object ref = groupId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          groupId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string group_id = 2;
       */
      public com.google.protobuf.ByteString
          getGroupIdBytes() {
        java.lang.Object ref = groupId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          groupId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string group_id = 2;
       */
      public Builder setGroupId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        groupId_ = value;
        onChanged();
        return this;
      }
      /**
       * string group_id = 2;
       */
      public Builder clearGroupId() {
        
        groupId_ = getDefaultInstance().getGroupId();
        onChanged();
        return this;
      }
      /**
       * string group_id = 2;
       */
      public Builder setGroupIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        groupId_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object partnerId_ = "";
      /**
       * string partner_id = 3;
       */
      public java.lang.String getPartnerId() {
        java.lang.Object ref = partnerId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          partnerId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string partner_id = 3;
       */
      public com.google.protobuf.ByteString
          getPartnerIdBytes() {
        java.lang.Object ref = partnerId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          partnerId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string partner_id = 3;
       */
      public Builder setPartnerId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        partnerId_ = value;
        onChanged();
        return this;
      }
      /**
       * string partner_id = 3;
       */
      public Builder clearPartnerId() {
        
        partnerId_ = getDefaultInstance().getPartnerId();
        onChanged();
        return this;
      }
      /**
       * string partner_id = 3;
       */
      public Builder setPartnerIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        partnerId_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object marketId_ = "";
      /**
       * string market_id = 4;
       */
      public java.lang.String getMarketId() {
        java.lang.Object ref = marketId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          marketId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string market_id = 4;
       */
      public com.google.protobuf.ByteString
          getMarketIdBytes() {
        java.lang.Object ref = marketId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          marketId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string market_id = 4;
       */
      public Builder setMarketId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        marketId_ = value;
        onChanged();
        return this;
      }
      /**
       * string market_id = 4;
       */
      public Builder clearMarketId() {
        
        marketId_ = getDefaultInstance().getMarketId();
        onChanged();
        return this;
      }
      /**
       * string market_id = 4;
       */
      public Builder setMarketIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        marketId_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.Timestamp updated_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedBuilder_;
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public boolean hasUpdated() {
        return updatedBuilder_ != null || updated_ != null;
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public com.google.protobuf.Timestamp getUpdated() {
        if (updatedBuilder_ == null) {
          return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
        } else {
          return updatedBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public Builder setUpdated(com.google.protobuf.Timestamp value) {
        if (updatedBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          updated_ = value;
          onChanged();
        } else {
          updatedBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public Builder setUpdated(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (updatedBuilder_ == null) {
          updated_ = builderForValue.build();
          onChanged();
        } else {
          updatedBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public Builder mergeUpdated(com.google.protobuf.Timestamp value) {
        if (updatedBuilder_ == null) {
          if (updated_ != null) {
            updated_ =
              com.google.protobuf.Timestamp.newBuilder(updated_).mergeFrom(value).buildPartial();
          } else {
            updated_ = value;
          }
          onChanged();
        } else {
          updatedBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public Builder clearUpdated() {
        if (updatedBuilder_ == null) {
          updated_ = null;
          onChanged();
        } else {
          updated_ = null;
          updatedBuilder_ = null;
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public com.google.protobuf.Timestamp.Builder getUpdatedBuilder() {
        
        onChanged();
        return getUpdatedFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
        if (updatedBuilder_ != null) {
          return updatedBuilder_.getMessageOrBuilder();
        } else {
          return updated_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
        }
      }
      /**
       * .google.protobuf.Timestamp updated = 5;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getUpdatedFieldBuilder() {
        if (updatedBuilder_ == null) {
          updatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getUpdated(),
                  getParentForChildren(),
                  isClean());
          updated_ = null;
        }
        return updatedBuilder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:sales.v1.SalesTeam)
    }

    // @@protoc_insertion_point(class_scope:sales.v1.SalesTeam)
    private static final com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam();
    }

    public static com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public SalesTeam parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
          return new SalesTeam(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    public com.vendasta.sales.v1.generated.SalesTeamProto.SalesTeam getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_sales_v1_SalesTeam_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_sales_v1_SalesTeam_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\031sales/v1/sales_team.proto\022\010sales.v1\032\037g" +
      "oogle/protobuf/timestamp.proto\"\204\001\n\tSales" +
      "Team\022\021\n\tteam_name\030\001 \001(\t\022\020\n\010group_id\030\002 \001(" +
      "\t\022\022\n\npartner_id\030\003 \001(\t\022\021\n\tmarket_id\030\004 \001(\t" +
      "\022+\n\007updated\030\005 \001(\0132\032.google.protobuf.Time" +
      "stampBl\n\037com.vendasta.sales.v1.generated" +
      "B\016SalesTeamProtoZ9github.com/vendasta/ge" +
      "nerated-protos-go/sales/v1;sales/v1b\006pro" +
      "to3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.TimestampProto.getDescriptor(),
        }, assigner);
    internal_static_sales_v1_SalesTeam_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_sales_v1_SalesTeam_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_sales_v1_SalesTeam_descriptor,
        new java.lang.String[] { "TeamName", "GroupId", "PartnerId", "MarketId", "Updated", });
    com.google.protobuf.TimestampProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy