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

com.clarifai.grpc.auth.scope.ScopeList Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/auth/scope/scope.proto

package com.clarifai.grpc.auth.scope;

/**
 * Protobuf type {@code clarifai.auth.scope.ScopeList}
 */
public final class ScopeList extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:clarifai.auth.scope.ScopeList)
    ScopeListOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ScopeList.newBuilder() to construct.
  private ScopeList(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ScopeList() {
    scopes_ = java.util.Collections.emptyList();
    endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ScopeList(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            int rawValue = input.readEnum();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              scopes_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            scopes_.add(rawValue);
            break;
          }
          case 10: {
            int length = input.readRawVarint32();
            int oldLimit = input.pushLimit(length);
            while(input.getBytesUntilLimit() > 0) {
              int rawValue = input.readEnum();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                scopes_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              scopes_.add(rawValue);
            }
            input.popLimit(oldLimit);
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              endpoints_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            endpoints_.add(s);
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        scopes_ = java.util.Collections.unmodifiableList(scopes_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        endpoints_ = endpoints_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.clarifai.grpc.auth.scope.Scope.internal_static_clarifai_auth_scope_ScopeList_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.clarifai.grpc.auth.scope.Scope.internal_static_clarifai_auth_scope_ScopeList_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.clarifai.grpc.auth.scope.ScopeList.class, com.clarifai.grpc.auth.scope.ScopeList.Builder.class);
  }

  public static final int SCOPES_FIELD_NUMBER = 1;
  private java.util.List scopes_;
  private static final com.google.protobuf.Internal.ListAdapter.Converter<
      java.lang.Integer, com.clarifai.grpc.auth.scope.S> scopes_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.clarifai.grpc.auth.scope.S>() {
            public com.clarifai.grpc.auth.scope.S convert(java.lang.Integer from) {
              @SuppressWarnings("deprecation")
              com.clarifai.grpc.auth.scope.S result = com.clarifai.grpc.auth.scope.S.valueOf(from);
              return result == null ? com.clarifai.grpc.auth.scope.S.UNRECOGNIZED : result;
            }
          };
  /**
   * 
   * These are the list of low-level scopes to check from the enum below.
   * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return A list containing the scopes. */ @java.lang.Override public java.util.List getScopesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.clarifai.grpc.auth.scope.S>(scopes_, scopes_converter_); } /** *
   * These are the list of low-level scopes to check from the enum below.
   * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return The count of scopes. */ @java.lang.Override public int getScopesCount() { return scopes_.size(); } /** *
   * These are the list of low-level scopes to check from the enum below.
   * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param index The index of the element to return. * @return The scopes at the given index. */ @java.lang.Override public com.clarifai.grpc.auth.scope.S getScopes(int index) { return scopes_converter_.convert(scopes_.get(index)); } /** *
   * These are the list of low-level scopes to check from the enum below.
   * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return A list containing the enum numeric values on the wire for scopes. */ @java.lang.Override public java.util.List getScopesValueList() { return scopes_; } /** *
   * These are the list of low-level scopes to check from the enum below.
   * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of scopes at the given index. */ @java.lang.Override public int getScopesValue(int index) { return scopes_.get(index); } private int scopesMemoizedSerializedSize; public static final int ENDPOINTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList endpoints_; /** *
   * This is a list of fully qualified grpc names to check.
   * 
* * repeated string endpoints = 2; * @return A list containing the endpoints. */ public com.google.protobuf.ProtocolStringList getEndpointsList() { return endpoints_; } /** *
   * This is a list of fully qualified grpc names to check.
   * 
* * repeated string endpoints = 2; * @return The count of endpoints. */ public int getEndpointsCount() { return endpoints_.size(); } /** *
   * This is a list of fully qualified grpc names to check.
   * 
* * repeated string endpoints = 2; * @param index The index of the element to return. * @return The endpoints at the given index. */ public java.lang.String getEndpoints(int index) { return endpoints_.get(index); } /** *
   * This is a list of fully qualified grpc names to check.
   * 
* * repeated string endpoints = 2; * @param index The index of the value to return. * @return The bytes of the endpoints at the given index. */ public com.google.protobuf.ByteString getEndpointsBytes(int index) { return endpoints_.getByteString(index); } 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 { getSerializedSize(); if (getScopesList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(scopesMemoizedSerializedSize); } for (int i = 0; i < scopes_.size(); i++) { output.writeEnumNoTag(scopes_.get(i)); } for (int i = 0; i < endpoints_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpoints_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < scopes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(scopes_.get(i)); } size += dataSize; if (!getScopesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }scopesMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < endpoints_.size(); i++) { dataSize += computeStringSizeNoTag(endpoints_.getRaw(i)); } size += dataSize; size += 1 * getEndpointsList().size(); } size += unknownFields.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.clarifai.grpc.auth.scope.ScopeList)) { return super.equals(obj); } com.clarifai.grpc.auth.scope.ScopeList other = (com.clarifai.grpc.auth.scope.ScopeList) obj; if (!scopes_.equals(other.scopes_)) return false; if (!getEndpointsList() .equals(other.getEndpointsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + scopes_.hashCode(); } if (getEndpointsCount() > 0) { hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getEndpointsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.auth.scope.ScopeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.auth.scope.ScopeList 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.clarifai.grpc.auth.scope.ScopeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.auth.scope.ScopeList 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.clarifai.grpc.auth.scope.ScopeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.auth.scope.ScopeList 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.clarifai.grpc.auth.scope.ScopeList 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 clarifai.auth.scope.ScopeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.auth.scope.ScopeList) com.clarifai.grpc.auth.scope.ScopeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.auth.scope.Scope.internal_static_clarifai_auth_scope_ScopeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.auth.scope.Scope.internal_static_clarifai_auth_scope_ScopeList_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.auth.scope.ScopeList.class, com.clarifai.grpc.auth.scope.ScopeList.Builder.class); } // Construct using com.clarifai.grpc.auth.scope.ScopeList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); scopes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.auth.scope.Scope.internal_static_clarifai_auth_scope_ScopeList_descriptor; } @java.lang.Override public com.clarifai.grpc.auth.scope.ScopeList getDefaultInstanceForType() { return com.clarifai.grpc.auth.scope.ScopeList.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.auth.scope.ScopeList build() { com.clarifai.grpc.auth.scope.ScopeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.auth.scope.ScopeList buildPartial() { com.clarifai.grpc.auth.scope.ScopeList result = new com.clarifai.grpc.auth.scope.ScopeList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { scopes_ = java.util.Collections.unmodifiableList(scopes_); bitField0_ = (bitField0_ & ~0x00000001); } result.scopes_ = scopes_; if (((bitField0_ & 0x00000002) != 0)) { endpoints_ = endpoints_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.endpoints_ = endpoints_; onBuilt(); return result; } @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.clarifai.grpc.auth.scope.ScopeList) { return mergeFrom((com.clarifai.grpc.auth.scope.ScopeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.auth.scope.ScopeList other) { if (other == com.clarifai.grpc.auth.scope.ScopeList.getDefaultInstance()) return this; if (!other.scopes_.isEmpty()) { if (scopes_.isEmpty()) { scopes_ = other.scopes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureScopesIsMutable(); scopes_.addAll(other.scopes_); } onChanged(); } if (!other.endpoints_.isEmpty()) { if (endpoints_.isEmpty()) { endpoints_ = other.endpoints_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEndpointsIsMutable(); endpoints_.addAll(other.endpoints_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { com.clarifai.grpc.auth.scope.ScopeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.auth.scope.ScopeList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List scopes_ = java.util.Collections.emptyList(); private void ensureScopesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scopes_ = new java.util.ArrayList(scopes_); bitField0_ |= 0x00000001; } } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return A list containing the scopes. */ public java.util.List getScopesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.clarifai.grpc.auth.scope.S>(scopes_, scopes_converter_); } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return The count of scopes. */ public int getScopesCount() { return scopes_.size(); } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param index The index of the element to return. * @return The scopes at the given index. */ public com.clarifai.grpc.auth.scope.S getScopes(int index) { return scopes_converter_.convert(scopes_.get(index)); } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param index The index to set the value at. * @param value The scopes to set. * @return This builder for chaining. */ public Builder setScopes( int index, com.clarifai.grpc.auth.scope.S value) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.set(index, value.getNumber()); onChanged(); return this; } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param value The scopes to add. * @return This builder for chaining. */ public Builder addScopes(com.clarifai.grpc.auth.scope.S value) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(value.getNumber()); onChanged(); return this; } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param values The scopes to add. * @return This builder for chaining. */ public Builder addAllScopes( java.lang.Iterable values) { ensureScopesIsMutable(); for (com.clarifai.grpc.auth.scope.S value : values) { scopes_.add(value.getNumber()); } onChanged(); return this; } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return This builder for chaining. */ public Builder clearScopes() { scopes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @return A list containing the enum numeric values on the wire for scopes. */ public java.util.List getScopesValueList() { return java.util.Collections.unmodifiableList(scopes_); } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of scopes at the given index. */ public int getScopesValue(int index) { return scopes_.get(index); } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for scopes to set. * @return This builder for chaining. */ public Builder setScopesValue( int index, int value) { ensureScopesIsMutable(); scopes_.set(index, value); onChanged(); return this; } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param value The enum numeric value on the wire for scopes to add. * @return This builder for chaining. */ public Builder addScopesValue(int value) { ensureScopesIsMutable(); scopes_.add(value); onChanged(); return this; } /** *
     * These are the list of low-level scopes to check from the enum below.
     * 
* * repeated .clarifai.auth.scope.S scopes = 1; * @param values The enum numeric values on the wire for scopes to add. * @return This builder for chaining. */ public Builder addAllScopesValue( java.lang.Iterable values) { ensureScopesIsMutable(); for (int value : values) { scopes_.add(value); } onChanged(); return this; } private com.google.protobuf.LazyStringList endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEndpointsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { endpoints_ = new com.google.protobuf.LazyStringArrayList(endpoints_); bitField0_ |= 0x00000002; } } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @return A list containing the endpoints. */ public com.google.protobuf.ProtocolStringList getEndpointsList() { return endpoints_.getUnmodifiableView(); } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @return The count of endpoints. */ public int getEndpointsCount() { return endpoints_.size(); } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @param index The index of the element to return. * @return The endpoints at the given index. */ public java.lang.String getEndpoints(int index) { return endpoints_.get(index); } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @param index The index of the value to return. * @return The bytes of the endpoints at the given index. */ public com.google.protobuf.ByteString getEndpointsBytes(int index) { return endpoints_.getByteString(index); } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @param index The index to set the value at. * @param value The endpoints to set. * @return This builder for chaining. */ public Builder setEndpoints( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEndpointsIsMutable(); endpoints_.set(index, value); onChanged(); return this; } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @param value The endpoints to add. * @return This builder for chaining. */ public Builder addEndpoints( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEndpointsIsMutable(); endpoints_.add(value); onChanged(); return this; } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @param values The endpoints to add. * @return This builder for chaining. */ public Builder addAllEndpoints( java.lang.Iterable values) { ensureEndpointsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, endpoints_); onChanged(); return this; } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @return This builder for chaining. */ public Builder clearEndpoints() { endpoints_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * This is a list of fully qualified grpc names to check.
     * 
* * repeated string endpoints = 2; * @param value The bytes of the endpoints to add. * @return This builder for chaining. */ public Builder addEndpointsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEndpointsIsMutable(); endpoints_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:clarifai.auth.scope.ScopeList) } // @@protoc_insertion_point(class_scope:clarifai.auth.scope.ScopeList) private static final com.clarifai.grpc.auth.scope.ScopeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.auth.scope.ScopeList(); } public static com.clarifai.grpc.auth.scope.ScopeList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScopeList(input, extensionRegistry); } }; 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.clarifai.grpc.auth.scope.ScopeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy