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

com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: confidence/flags/resolver/v1/api.proto

package com.spotify.confidence.shaded.flags.resolver.v1;

/**
 * Protobuf type {@code confidence.flags.resolver.v1.ApplyFlagsRequest}
 */
public final class ApplyFlagsRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:confidence.flags.resolver.v1.ApplyFlagsRequest)
    ApplyFlagsRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ApplyFlagsRequest.newBuilder() to construct.
  private ApplyFlagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ApplyFlagsRequest() {
    flags_ = java.util.Collections.emptyList();
    clientSecret_ = "";
    resolveToken_ = com.google.protobuf.ByteString.EMPTY;
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.spotify.confidence.shaded.flags.resolver.v1.ApiProto.internal_static_confidence_flags_resolver_v1_ApplyFlagsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.spotify.confidence.shaded.flags.resolver.v1.ApiProto.internal_static_confidence_flags_resolver_v1_ApplyFlagsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.class, com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.Builder.class);
  }

  public static final int FLAGS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List flags_;
  /**
   * 
   * The flags to apply and information about when they were applied.
   * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getFlagsList() { return flags_; } /** *
   * The flags to apply and information about when they were applied.
   * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getFlagsOrBuilderList() { return flags_; } /** *
   * The flags to apply and information about when they were applied.
   * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getFlagsCount() { return flags_.size(); } /** *
   * The flags to apply and information about when they were applied.
   * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag getFlags(int index) { return flags_.get(index); } /** *
   * The flags to apply and information about when they were applied.
   * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlagOrBuilder getFlagsOrBuilder( int index) { return flags_.get(index); } public static final int CLIENT_SECRET_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object clientSecret_ = ""; /** *
   * Credentials for the client.
   * 
* * string client_secret = 2; * @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; } } /** *
   * Credentials for the client.
   * 
* * string client_secret = 2; * @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 RESOLVE_TOKEN_FIELD_NUMBER = 3; private com.google.protobuf.ByteString resolveToken_ = com.google.protobuf.ByteString.EMPTY; /** *
   * An opaque token that was returned from `ResolveFlags`; it must be set.
   * 
* * bytes resolve_token = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resolveToken. */ @java.lang.Override public com.google.protobuf.ByteString getResolveToken() { return resolveToken_; } public static final int SEND_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp sendTime_; /** *
   * The client time when the this request was sent, used for correcting
   * clock skew from the client.
   * 
* * .google.protobuf.Timestamp send_time = 4 [(.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 this request was sent, used for correcting
   * clock skew from the client.
   * 
* * .google.protobuf.Timestamp send_time = 4 [(.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 this request was sent, used for correcting
   * clock skew from the client.
   * 
* * .google.protobuf.Timestamp send_time = 4 [(.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 = 5; private com.spotify.confidence.shaded.flags.resolver.v1.Sdk sdk_; /** *
   * Information about the SDK used to initiate the request.
   * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.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.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The sdk. */ @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.Sdk getSdk() { return sdk_ == null ? com.spotify.confidence.shaded.flags.resolver.v1.Sdk.getDefaultInstance() : sdk_; } /** *
   * Information about the SDK used to initiate the request.
   * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.SdkOrBuilder getSdkOrBuilder() { return sdk_ == null ? com.spotify.confidence.shaded.flags.resolver.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 { for (int i = 0; i < flags_.size(); i++) { output.writeMessage(1, flags_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientSecret_); } if (!resolveToken_.isEmpty()) { output.writeBytes(3, resolveToken_); } if (sendTime_ != null) { output.writeMessage(4, getSendTime()); } if (sdk_ != null) { output.writeMessage(5, getSdk()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < flags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, flags_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientSecret_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientSecret_); } if (!resolveToken_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, resolveToken_); } if (sendTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSendTime()); } if (sdk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, 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.shaded.flags.resolver.v1.ApplyFlagsRequest)) { return super.equals(obj); } com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest other = (com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest) obj; if (!getFlagsList() .equals(other.getFlagsList())) return false; if (!getClientSecret() .equals(other.getClientSecret())) return false; if (!getResolveToken() .equals(other.getResolveToken())) 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(); if (getFlagsCount() > 0) { hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlagsList().hashCode(); } hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; hash = (53 * hash) + getClientSecret().hashCode(); hash = (37 * hash) + RESOLVE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResolveToken().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.shaded.flags.resolver.v1.ApplyFlagsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest 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.shaded.flags.resolver.v1.ApplyFlagsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest 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.shaded.flags.resolver.v1.ApplyFlagsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest 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.shaded.flags.resolver.v1.ApplyFlagsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest 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.shaded.flags.resolver.v1.ApplyFlagsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest 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.shaded.flags.resolver.v1.ApplyFlagsRequest 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.flags.resolver.v1.ApplyFlagsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:confidence.flags.resolver.v1.ApplyFlagsRequest) com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.spotify.confidence.shaded.flags.resolver.v1.ApiProto.internal_static_confidence_flags_resolver_v1_ApplyFlagsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.spotify.confidence.shaded.flags.resolver.v1.ApiProto.internal_static_confidence_flags_resolver_v1_ApplyFlagsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.class, com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.Builder.class); } // Construct using com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); } else { flags_ = null; flagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); clientSecret_ = ""; resolveToken_ = com.google.protobuf.ByteString.EMPTY; 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.shaded.flags.resolver.v1.ApiProto.internal_static_confidence_flags_resolver_v1_ApplyFlagsRequest_descriptor; } @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest getDefaultInstanceForType() { return com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.getDefaultInstance(); } @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest build() { com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest buildPartial() { com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest result = new com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest result) { if (flagsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { flags_ = java.util.Collections.unmodifiableList(flags_); bitField0_ = (bitField0_ & ~0x00000001); } result.flags_ = flags_; } else { result.flags_ = flagsBuilder_.build(); } } private void buildPartial0(com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.clientSecret_ = clientSecret_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resolveToken_ = resolveToken_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sendTime_ = sendTimeBuilder_ == null ? sendTime_ : sendTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 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.shaded.flags.resolver.v1.ApplyFlagsRequest) { return mergeFrom((com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest other) { if (other == com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest.getDefaultInstance()) return this; if (flagsBuilder_ == null) { if (!other.flags_.isEmpty()) { if (flags_.isEmpty()) { flags_ = other.flags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFlagsIsMutable(); flags_.addAll(other.flags_); } onChanged(); } } else { if (!other.flags_.isEmpty()) { if (flagsBuilder_.isEmpty()) { flagsBuilder_.dispose(); flagsBuilder_ = null; flags_ = other.flags_; bitField0_ = (bitField0_ & ~0x00000001); flagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFlagsFieldBuilder() : null; } else { flagsBuilder_.addAllMessages(other.flags_); } } } if (!other.getClientSecret().isEmpty()) { clientSecret_ = other.clientSecret_; bitField0_ |= 0x00000002; onChanged(); } if (other.getResolveToken() != com.google.protobuf.ByteString.EMPTY) { setResolveToken(other.getResolveToken()); } 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: { com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag m = input.readMessage( com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.parser(), extensionRegistry); if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(m); } else { flagsBuilder_.addMessage(m); } break; } // case 10 case 18: { clientSecret_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { resolveToken_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSendTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getSdkFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 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.util.List flags_ = java.util.Collections.emptyList(); private void ensureFlagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { flags_ = new java.util.ArrayList(flags_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlagOrBuilder> flagsBuilder_; /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getFlagsList() { if (flagsBuilder_ == null) { return java.util.Collections.unmodifiableList(flags_); } else { return flagsBuilder_.getMessageList(); } } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getFlagsCount() { if (flagsBuilder_ == null) { return flags_.size(); } else { return flagsBuilder_.getCount(); } } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag getFlags(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { return flagsBuilder_.getMessage(index); } } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFlags( int index, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.set(index, value); onChanged(); } else { flagsBuilder_.setMessage(index, value); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFlags( int index, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.set(index, builderForValue.build()); onChanged(); } else { flagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addFlags(com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.add(value); onChanged(); } else { flagsBuilder_.addMessage(value); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addFlags( int index, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.add(index, value); onChanged(); } else { flagsBuilder_.addMessage(index, value); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addFlags( com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(builderForValue.build()); onChanged(); } else { flagsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addFlags( int index, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(index, builderForValue.build()); onChanged(); } else { flagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllFlags( java.lang.Iterable values) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, flags_); onChanged(); } else { flagsBuilder_.addAllMessages(values); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { flagsBuilder_.clear(); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeFlags(int index) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.remove(index); onChanged(); } else { flagsBuilder_.remove(index); } return this; } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder getFlagsBuilder( int index) { return getFlagsFieldBuilder().getBuilder(index); } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlagOrBuilder getFlagsOrBuilder( int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { return flagsBuilder_.getMessageOrBuilder(index); } } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getFlagsOrBuilderList() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(flags_); } } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder addFlagsBuilder() { return getFlagsFieldBuilder().addBuilder( com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.getDefaultInstance()); } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder addFlagsBuilder( int index) { return getFlagsFieldBuilder().addBuilder( index, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.getDefaultInstance()); } /** *
     * The flags to apply and information about when they were applied.
     * 
* * repeated .confidence.flags.resolver.v1.AppliedFlag flags = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getFlagsBuilderList() { return getFlagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlagOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlag.Builder, com.spotify.confidence.shaded.flags.resolver.v1.AppliedFlagOrBuilder>( flags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } private java.lang.Object clientSecret_ = ""; /** *
     * Credentials for the client.
     * 
* * string client_secret = 2; * @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; } } /** *
     * Credentials for the client.
     * 
* * string client_secret = 2; * @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; } } /** *
     * Credentials for the client.
     * 
* * string client_secret = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** *
     * Credentials for the client.
     * 
* * string client_secret = 2; * @return This builder for chaining. */ public Builder clearClientSecret() { clientSecret_ = getDefaultInstance().getClientSecret(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Credentials for the client.
     * 
* * string client_secret = 2; * @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_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.ByteString resolveToken_ = com.google.protobuf.ByteString.EMPTY; /** *
     * An opaque token that was returned from `ResolveFlags`; it must be set.
     * 
* * bytes resolve_token = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resolveToken. */ @java.lang.Override public com.google.protobuf.ByteString getResolveToken() { return resolveToken_; } /** *
     * An opaque token that was returned from `ResolveFlags`; it must be set.
     * 
* * bytes resolve_token = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The resolveToken to set. * @return This builder for chaining. */ public Builder setResolveToken(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resolveToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * An opaque token that was returned from `ResolveFlags`; it must be set.
     * 
* * bytes resolve_token = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearResolveToken() { bitField0_ = (bitField0_ & ~0x00000004); resolveToken_ = getDefaultInstance().getResolveToken(); onChanged(); return this; } 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 this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sendTime field is set. */ public boolean hasSendTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The client time when the this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.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 this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** *
     * The client time when the this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.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_ |= 0x00000008; onChanged(); return this; } /** *
     * The client time when the this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSendTime(com.google.protobuf.Timestamp value) { if (sendTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && sendTime_ != null && sendTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSendTimeBuilder().mergeFrom(value); } else { sendTime_ = value; } } else { sendTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The client time when the this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSendTime() { bitField0_ = (bitField0_ & ~0x00000008); sendTime_ = null; if (sendTimeBuilder_ != null) { sendTimeBuilder_.dispose(); sendTimeBuilder_ = null; } onChanged(); return this; } /** *
     * The client time when the this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getSendTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSendTimeFieldBuilder().getBuilder(); } /** *
     * The client time when the this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.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 this request was sent, used for correcting
     * clock skew from the client.
     * 
* * .google.protobuf.Timestamp send_time = 4 [(.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.shaded.flags.resolver.v1.Sdk sdk_; private com.google.protobuf.SingleFieldBuilderV3< com.spotify.confidence.shaded.flags.resolver.v1.Sdk, com.spotify.confidence.shaded.flags.resolver.v1.Sdk.Builder, com.spotify.confidence.shaded.flags.resolver.v1.SdkOrBuilder> sdkBuilder_; /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sdk field is set. */ public boolean hasSdk() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The sdk. */ public com.spotify.confidence.shaded.flags.resolver.v1.Sdk getSdk() { if (sdkBuilder_ == null) { return sdk_ == null ? com.spotify.confidence.shaded.flags.resolver.v1.Sdk.getDefaultInstance() : sdk_; } else { return sdkBuilder_.getMessage(); } } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSdk(com.spotify.confidence.shaded.flags.resolver.v1.Sdk value) { if (sdkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sdk_ = value; } else { sdkBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSdk( com.spotify.confidence.shaded.flags.resolver.v1.Sdk.Builder builderForValue) { if (sdkBuilder_ == null) { sdk_ = builderForValue.build(); } else { sdkBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSdk(com.spotify.confidence.shaded.flags.resolver.v1.Sdk value) { if (sdkBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && sdk_ != null && sdk_ != com.spotify.confidence.shaded.flags.resolver.v1.Sdk.getDefaultInstance()) { getSdkBuilder().mergeFrom(value); } else { sdk_ = value; } } else { sdkBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSdk() { bitField0_ = (bitField0_ & ~0x00000010); sdk_ = null; if (sdkBuilder_ != null) { sdkBuilder_.dispose(); sdkBuilder_ = null; } onChanged(); return this; } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.spotify.confidence.shaded.flags.resolver.v1.Sdk.Builder getSdkBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSdkFieldBuilder().getBuilder(); } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.spotify.confidence.shaded.flags.resolver.v1.SdkOrBuilder getSdkOrBuilder() { if (sdkBuilder_ != null) { return sdkBuilder_.getMessageOrBuilder(); } else { return sdk_ == null ? com.spotify.confidence.shaded.flags.resolver.v1.Sdk.getDefaultInstance() : sdk_; } } /** *
     * Information about the SDK used to initiate the request.
     * 
* * .confidence.flags.resolver.v1.Sdk sdk = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.spotify.confidence.shaded.flags.resolver.v1.Sdk, com.spotify.confidence.shaded.flags.resolver.v1.Sdk.Builder, com.spotify.confidence.shaded.flags.resolver.v1.SdkOrBuilder> getSdkFieldBuilder() { if (sdkBuilder_ == null) { sdkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.spotify.confidence.shaded.flags.resolver.v1.Sdk, com.spotify.confidence.shaded.flags.resolver.v1.Sdk.Builder, com.spotify.confidence.shaded.flags.resolver.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.flags.resolver.v1.ApplyFlagsRequest) } // @@protoc_insertion_point(class_scope:confidence.flags.resolver.v1.ApplyFlagsRequest) private static final com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest(); } public static com.spotify.confidence.shaded.flags.resolver.v1.ApplyFlagsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApplyFlagsRequest 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.shaded.flags.resolver.v1.ApplyFlagsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy