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

com.spotify.confidence.events.v1.PublishEventsRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: confidence/events/v1/api.proto

package com.spotify.confidence.events.v1;

/**
 * Protobuf type {@code confidence.events.v1.PublishEventsRequest}
 */
public final class PublishEventsRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:confidence.events.v1.PublishEventsRequest)
    PublishEventsRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PublishEventsRequest.newBuilder() to construct.
  private PublishEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PublishEventsRequest() {
    clientSecret_ = "";
    events_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.spotify.confidence.events.v1.ApiProto.internal_static_confidence_events_v1_PublishEventsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.spotify.confidence.events.v1.ApiProto.internal_static_confidence_events_v1_PublishEventsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.spotify.confidence.events.v1.PublishEventsRequest.class, com.spotify.confidence.events.v1.PublishEventsRequest.Builder.class);
  }

  public static final int CLIENT_SECRET_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object clientSecret_ = "";
  /**
   * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED];
   * @return The clientSecret.
   */
  @java.lang.Override
  public java.lang.String getClientSecret() {
    java.lang.Object ref = clientSecret_;
    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();
      clientSecret_ = s;
      return s;
    }
  }
  /**
   * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED];
   * @return The bytes for clientSecret.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getClientSecretBytes() {
    java.lang.Object ref = clientSecret_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      clientSecret_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EVENTS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List events_;
  /**
   * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED];
   */
  @java.lang.Override
  public java.util.List getEventsList() {
    return events_;
  }
  /**
   * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED];
   */
  @java.lang.Override
  public java.util.List 
      getEventsOrBuilderList() {
    return events_;
  }
  /**
   * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED];
   */
  @java.lang.Override
  public int getEventsCount() {
    return events_.size();
  }
  /**
   * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED];
   */
  @java.lang.Override
  public com.spotify.confidence.events.v1.Event getEvents(int index) {
    return events_.get(index);
  }
  /**
   * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED];
   */
  @java.lang.Override
  public com.spotify.confidence.events.v1.EventOrBuilder getEventsOrBuilder(
      int index) {
    return events_.get(index);
  }

  public static final int SEND_TIME_FIELD_NUMBER = 3;
  private com.google.protobuf.Timestamp sendTime_;
  /**
   * 
   * The client time when the request was sent.
   * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sendTime field is set. */ @java.lang.Override public boolean hasSendTime() { return sendTime_ != null; } /** *
   * The client time when the request was sent.
   * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The sendTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSendTime() { return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; } /** *
   * The client time when the request was sent.
   * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder() { return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; } public static final int SDK_FIELD_NUMBER = 4; private com.spotify.confidence.events.v1.Sdk sdk_; /** *
   * Information about the SDK used to initiate the request.
   * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sdk field is set. */ @java.lang.Override public boolean hasSdk() { return sdk_ != null; } /** *
   * Information about the SDK used to initiate the request.
   * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The sdk. */ @java.lang.Override public com.spotify.confidence.events.v1.Sdk getSdk() { return sdk_ == null ? com.spotify.confidence.events.v1.Sdk.getDefaultInstance() : sdk_; } /** *
   * Information about the SDK used to initiate the request.
   * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.spotify.confidence.events.v1.SdkOrBuilder getSdkOrBuilder() { return sdk_ == null ? com.spotify.confidence.events.v1.Sdk.getDefaultInstance() : sdk_; } 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(clientSecret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientSecret_); } for (int i = 0; i < events_.size(); i++) { output.writeMessage(2, events_.get(i)); } if (sendTime_ != null) { output.writeMessage(3, getSendTime()); } if (sdk_ != null) { output.writeMessage(4, getSdk()); } 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(clientSecret_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientSecret_); } for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, events_.get(i)); } if (sendTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSendTime()); } if (sdk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSdk()); } 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 com.spotify.confidence.events.v1.PublishEventsRequest)) { return super.equals(obj); } com.spotify.confidence.events.v1.PublishEventsRequest other = (com.spotify.confidence.events.v1.PublishEventsRequest) obj; if (!getClientSecret() .equals(other.getClientSecret())) return false; if (!getEventsList() .equals(other.getEventsList())) return false; if (hasSendTime() != other.hasSendTime()) return false; if (hasSendTime()) { if (!getSendTime() .equals(other.getSendTime())) return false; } if (hasSdk() != other.hasSdk()) return false; if (hasSdk()) { if (!getSdk() .equals(other.getSdk())) 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) + CLIENT_SECRET_FIELD_NUMBER; hash = (53 * hash) + getClientSecret().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } if (hasSendTime()) { hash = (37 * hash) + SEND_TIME_FIELD_NUMBER; hash = (53 * hash) + getSendTime().hashCode(); } if (hasSdk()) { hash = (37 * hash) + SDK_FIELD_NUMBER; hash = (53 * hash) + getSdk().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.confidence.events.v1.PublishEventsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.confidence.events.v1.PublishEventsRequest 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.spotify.confidence.events.v1.PublishEventsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.spotify.confidence.events.v1.PublishEventsRequest 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.spotify.confidence.events.v1.PublishEventsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.confidence.events.v1.PublishEventsRequest 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(com.spotify.confidence.events.v1.PublishEventsRequest 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 confidence.events.v1.PublishEventsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:confidence.events.v1.PublishEventsRequest) com.spotify.confidence.events.v1.PublishEventsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.spotify.confidence.events.v1.ApiProto.internal_static_confidence_events_v1_PublishEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.spotify.confidence.events.v1.ApiProto.internal_static_confidence_events_v1_PublishEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.spotify.confidence.events.v1.PublishEventsRequest.class, com.spotify.confidence.events.v1.PublishEventsRequest.Builder.class); } // Construct using com.spotify.confidence.events.v1.PublishEventsRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; clientSecret_ = ""; if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); } else { events_ = null; eventsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); sendTime_ = null; if (sendTimeBuilder_ != null) { sendTimeBuilder_.dispose(); sendTimeBuilder_ = null; } sdk_ = null; if (sdkBuilder_ != null) { sdkBuilder_.dispose(); sdkBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.spotify.confidence.events.v1.ApiProto.internal_static_confidence_events_v1_PublishEventsRequest_descriptor; } @java.lang.Override public com.spotify.confidence.events.v1.PublishEventsRequest getDefaultInstanceForType() { return com.spotify.confidence.events.v1.PublishEventsRequest.getDefaultInstance(); } @java.lang.Override public com.spotify.confidence.events.v1.PublishEventsRequest build() { com.spotify.confidence.events.v1.PublishEventsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.spotify.confidence.events.v1.PublishEventsRequest buildPartial() { com.spotify.confidence.events.v1.PublishEventsRequest result = new com.spotify.confidence.events.v1.PublishEventsRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.spotify.confidence.events.v1.PublishEventsRequest result) { if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000002); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } } private void buildPartial0(com.spotify.confidence.events.v1.PublishEventsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.clientSecret_ = clientSecret_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sendTime_ = sendTimeBuilder_ == null ? sendTime_ : sendTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.sdk_ = sdkBuilder_ == null ? sdk_ : sdkBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.spotify.confidence.events.v1.PublishEventsRequest) { return mergeFrom((com.spotify.confidence.events.v1.PublishEventsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.spotify.confidence.events.v1.PublishEventsRequest other) { if (other == com.spotify.confidence.events.v1.PublishEventsRequest.getDefaultInstance()) return this; if (!other.getClientSecret().isEmpty()) { clientSecret_ = other.clientSecret_; bitField0_ |= 0x00000001; onChanged(); } if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000002); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } if (other.hasSendTime()) { mergeSendTime(other.getSendTime()); } if (other.hasSdk()) { mergeSdk(other.getSdk()); } 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: { clientSecret_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { com.spotify.confidence.events.v1.Event m = input.readMessage( com.spotify.confidence.events.v1.Event.parser(), extensionRegistry); if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(m); } else { eventsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getSendTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSdkFieldBuilder().getBuilder(), extensionRegistry); 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 clientSecret_ = ""; /** * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The clientSecret. */ public java.lang.String getClientSecret() { java.lang.Object ref = clientSecret_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientSecret_ = s; return s; } else { return (java.lang.String) ref; } } /** * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for clientSecret. */ public com.google.protobuf.ByteString getClientSecretBytes() { java.lang.Object ref = clientSecret_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientSecret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The clientSecret to set. * @return This builder for chaining. */ public Builder setClientSecret( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientSecret_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearClientSecret() { clientSecret_ = getDefaultInstance().getClientSecret(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string client_secret = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for clientSecret to set. * @return This builder for chaining. */ public Builder setClientSecretBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientSecret_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.confidence.events.v1.Event, com.spotify.confidence.events.v1.Event.Builder, com.spotify.confidence.events.v1.EventOrBuilder> eventsBuilder_; /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.events.v1.Event getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEvents( int index, com.spotify.confidence.events.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEvents( int index, com.spotify.confidence.events.v1.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEvents(com.spotify.confidence.events.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEvents( int index, com.spotify.confidence.events.v1.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEvents( com.spotify.confidence.events.v1.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addEvents( int index, com.spotify.confidence.events.v1.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.events.v1.Event.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.events.v1.EventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.events.v1.Event.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( com.spotify.confidence.events.v1.Event.getDefaultInstance()); } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.events.v1.Event.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, com.spotify.confidence.events.v1.Event.getDefaultInstance()); } /** * repeated .confidence.events.v1.Event events = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.confidence.events.v1.Event, com.spotify.confidence.events.v1.Event.Builder, com.spotify.confidence.events.v1.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.confidence.events.v1.Event, com.spotify.confidence.events.v1.Event.Builder, com.spotify.confidence.events.v1.EventOrBuilder>( events_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } private com.google.protobuf.Timestamp sendTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> sendTimeBuilder_; /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sendTime field is set. */ public boolean hasSendTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The sendTime. */ public com.google.protobuf.Timestamp getSendTime() { if (sendTimeBuilder_ == null) { return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; } else { return sendTimeBuilder_.getMessage(); } } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSendTime(com.google.protobuf.Timestamp value) { if (sendTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sendTime_ = value; } else { sendTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSendTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (sendTimeBuilder_ == null) { sendTime_ = builderForValue.build(); } else { sendTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSendTime(com.google.protobuf.Timestamp value) { if (sendTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && sendTime_ != null && sendTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSendTimeBuilder().mergeFrom(value); } else { sendTime_ = value; } } else { sendTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSendTime() { bitField0_ = (bitField0_ & ~0x00000004); sendTime_ = null; if (sendTimeBuilder_ != null) { sendTimeBuilder_.dispose(); sendTimeBuilder_ = null; } onChanged(); return this; } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getSendTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSendTimeFieldBuilder().getBuilder(); } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder() { if (sendTimeBuilder_ != null) { return sendTimeBuilder_.getMessageOrBuilder(); } else { return sendTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendTime_; } } /** *
     * The client time when the request was sent.
     * 
* * .google.protobuf.Timestamp send_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSendTimeFieldBuilder() { if (sendTimeBuilder_ == null) { sendTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSendTime(), getParentForChildren(), isClean()); sendTime_ = null; } return sendTimeBuilder_; } private com.spotify.confidence.events.v1.Sdk sdk_; private com.google.protobuf.SingleFieldBuilderV3< com.spotify.confidence.events.v1.Sdk, com.spotify.confidence.events.v1.Sdk.Builder, com.spotify.confidence.events.v1.SdkOrBuilder> sdkBuilder_; /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sdk field is set. */ public boolean hasSdk() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The sdk. */ public com.spotify.confidence.events.v1.Sdk getSdk() { if (sdkBuilder_ == null) { return sdk_ == null ? com.spotify.confidence.events.v1.Sdk.getDefaultInstance() : sdk_; } else { return sdkBuilder_.getMessage(); } } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSdk(com.spotify.confidence.events.v1.Sdk value) { if (sdkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sdk_ = value; } else { sdkBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSdk( com.spotify.confidence.events.v1.Sdk.Builder builderForValue) { if (sdkBuilder_ == null) { sdk_ = builderForValue.build(); } else { sdkBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSdk(com.spotify.confidence.events.v1.Sdk value) { if (sdkBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && sdk_ != null && sdk_ != com.spotify.confidence.events.v1.Sdk.getDefaultInstance()) { getSdkBuilder().mergeFrom(value); } else { sdk_ = value; } } else { sdkBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSdk() { bitField0_ = (bitField0_ & ~0x00000008); sdk_ = null; if (sdkBuilder_ != null) { sdkBuilder_.dispose(); sdkBuilder_ = null; } onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.spotify.confidence.events.v1.Sdk.Builder getSdkBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSdkFieldBuilder().getBuilder(); } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.spotify.confidence.events.v1.SdkOrBuilder getSdkOrBuilder() { if (sdkBuilder_ != null) { return sdkBuilder_.getMessageOrBuilder(); } else { return sdk_ == null ? com.spotify.confidence.events.v1.Sdk.getDefaultInstance() : sdk_; } } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.events.v1.Sdk sdk = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.spotify.confidence.events.v1.Sdk, com.spotify.confidence.events.v1.Sdk.Builder, com.spotify.confidence.events.v1.SdkOrBuilder> getSdkFieldBuilder() { if (sdkBuilder_ == null) { sdkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.spotify.confidence.events.v1.Sdk, com.spotify.confidence.events.v1.Sdk.Builder, com.spotify.confidence.events.v1.SdkOrBuilder>( getSdk(), getParentForChildren(), isClean()); sdk_ = null; } return sdkBuilder_; } @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:confidence.events.v1.PublishEventsRequest) } // @@protoc_insertion_point(class_scope:confidence.events.v1.PublishEventsRequest) private static final com.spotify.confidence.events.v1.PublishEventsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.spotify.confidence.events.v1.PublishEventsRequest(); } public static com.spotify.confidence.events.v1.PublishEventsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublishEventsRequest 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 com.spotify.confidence.events.v1.PublishEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy