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

com.fullcontact.rpc.Headers Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpcjersey/headers.proto

// Protobuf Java Version: 3.25.1
package com.fullcontact.rpc;

/**
 * Protobuf type {@code grpcjersey.Headers}
 */
public final class Headers extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpcjersey.Headers)
    HeadersOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Headers.newBuilder() to construct.
  private Headers(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Headers() {
    header_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.fullcontact.rpc.HeadersOuterClass.internal_static_grpcjersey_Headers_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.fullcontact.rpc.HeadersOuterClass.internal_static_grpcjersey_Headers_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.fullcontact.rpc.Headers.class, com.fullcontact.rpc.Headers.Builder.class);
  }

  public static final int HEADER_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List header_;
  /**
   * 
   * List of headers, allows duplicated key names.
   * 
* * repeated .grpcjersey.Header header = 1; */ @java.lang.Override public java.util.List getHeaderList() { return header_; } /** *
   * List of headers, allows duplicated key names.
   * 
* * repeated .grpcjersey.Header header = 1; */ @java.lang.Override public java.util.List getHeaderOrBuilderList() { return header_; } /** *
   * List of headers, allows duplicated key names.
   * 
* * repeated .grpcjersey.Header header = 1; */ @java.lang.Override public int getHeaderCount() { return header_.size(); } /** *
   * List of headers, allows duplicated key names.
   * 
* * repeated .grpcjersey.Header header = 1; */ @java.lang.Override public com.fullcontact.rpc.Header getHeader(int index) { return header_.get(index); } /** *
   * List of headers, allows duplicated key names.
   * 
* * repeated .grpcjersey.Header header = 1; */ @java.lang.Override public com.fullcontact.rpc.HeaderOrBuilder getHeaderOrBuilder( int index) { return header_.get(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 { for (int i = 0; i < header_.size(); i++) { output.writeMessage(1, header_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < header_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, header_.get(i)); } 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.fullcontact.rpc.Headers)) { return super.equals(obj); } com.fullcontact.rpc.Headers other = (com.fullcontact.rpc.Headers) obj; if (!getHeaderList() .equals(other.getHeaderList())) 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 (getHeaderCount() > 0) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeaderList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.fullcontact.rpc.Headers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.fullcontact.rpc.Headers parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.fullcontact.rpc.Headers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.fullcontact.rpc.Headers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.fullcontact.rpc.Headers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.fullcontact.rpc.Headers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.fullcontact.rpc.Headers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.fullcontact.rpc.Headers 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.fullcontact.rpc.Headers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.fullcontact.rpc.Headers 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.fullcontact.rpc.Headers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.fullcontact.rpc.Headers 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.fullcontact.rpc.Headers 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 grpcjersey.Headers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpcjersey.Headers) com.fullcontact.rpc.HeadersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.fullcontact.rpc.HeadersOuterClass.internal_static_grpcjersey_Headers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.fullcontact.rpc.HeadersOuterClass.internal_static_grpcjersey_Headers_fieldAccessorTable .ensureFieldAccessorsInitialized( com.fullcontact.rpc.Headers.class, com.fullcontact.rpc.Headers.Builder.class); } // Construct using com.fullcontact.rpc.Headers.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (headerBuilder_ == null) { header_ = java.util.Collections.emptyList(); } else { header_ = null; headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.fullcontact.rpc.HeadersOuterClass.internal_static_grpcjersey_Headers_descriptor; } @java.lang.Override public com.fullcontact.rpc.Headers getDefaultInstanceForType() { return com.fullcontact.rpc.Headers.getDefaultInstance(); } @java.lang.Override public com.fullcontact.rpc.Headers build() { com.fullcontact.rpc.Headers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.fullcontact.rpc.Headers buildPartial() { com.fullcontact.rpc.Headers result = new com.fullcontact.rpc.Headers(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.fullcontact.rpc.Headers result) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { header_ = java.util.Collections.unmodifiableList(header_); bitField0_ = (bitField0_ & ~0x00000001); } result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } } private void buildPartial0(com.fullcontact.rpc.Headers result) { int from_bitField0_ = bitField0_; } @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.fullcontact.rpc.Headers) { return mergeFrom((com.fullcontact.rpc.Headers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.fullcontact.rpc.Headers other) { if (other == com.fullcontact.rpc.Headers.getDefaultInstance()) return this; if (headerBuilder_ == null) { if (!other.header_.isEmpty()) { if (header_.isEmpty()) { header_ = other.header_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHeaderIsMutable(); header_.addAll(other.header_); } onChanged(); } } else { if (!other.header_.isEmpty()) { if (headerBuilder_.isEmpty()) { headerBuilder_.dispose(); headerBuilder_ = null; header_ = other.header_; bitField0_ = (bitField0_ & ~0x00000001); headerBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeaderFieldBuilder() : null; } else { headerBuilder_.addAllMessages(other.header_); } } } 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.fullcontact.rpc.Header m = input.readMessage( com.fullcontact.rpc.Header.parser(), extensionRegistry); if (headerBuilder_ == null) { ensureHeaderIsMutable(); header_.add(m); } else { headerBuilder_.addMessage(m); } break; } // case 10 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 header_ = java.util.Collections.emptyList(); private void ensureHeaderIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { header_ = new java.util.ArrayList(header_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.fullcontact.rpc.Header, com.fullcontact.rpc.Header.Builder, com.fullcontact.rpc.HeaderOrBuilder> headerBuilder_; /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public java.util.List getHeaderList() { if (headerBuilder_ == null) { return java.util.Collections.unmodifiableList(header_); } else { return headerBuilder_.getMessageList(); } } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public int getHeaderCount() { if (headerBuilder_ == null) { return header_.size(); } else { return headerBuilder_.getCount(); } } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public com.fullcontact.rpc.Header getHeader(int index) { if (headerBuilder_ == null) { return header_.get(index); } else { return headerBuilder_.getMessage(index); } } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder setHeader( int index, com.fullcontact.rpc.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeaderIsMutable(); header_.set(index, value); onChanged(); } else { headerBuilder_.setMessage(index, value); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder setHeader( int index, com.fullcontact.rpc.Header.Builder builderForValue) { if (headerBuilder_ == null) { ensureHeaderIsMutable(); header_.set(index, builderForValue.build()); onChanged(); } else { headerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder addHeader(com.fullcontact.rpc.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeaderIsMutable(); header_.add(value); onChanged(); } else { headerBuilder_.addMessage(value); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder addHeader( int index, com.fullcontact.rpc.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeaderIsMutable(); header_.add(index, value); onChanged(); } else { headerBuilder_.addMessage(index, value); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder addHeader( com.fullcontact.rpc.Header.Builder builderForValue) { if (headerBuilder_ == null) { ensureHeaderIsMutable(); header_.add(builderForValue.build()); onChanged(); } else { headerBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder addHeader( int index, com.fullcontact.rpc.Header.Builder builderForValue) { if (headerBuilder_ == null) { ensureHeaderIsMutable(); header_.add(index, builderForValue.build()); onChanged(); } else { headerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder addAllHeader( java.lang.Iterable values) { if (headerBuilder_ == null) { ensureHeaderIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, header_); onChanged(); } else { headerBuilder_.addAllMessages(values); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { headerBuilder_.clear(); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public Builder removeHeader(int index) { if (headerBuilder_ == null) { ensureHeaderIsMutable(); header_.remove(index); onChanged(); } else { headerBuilder_.remove(index); } return this; } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public com.fullcontact.rpc.Header.Builder getHeaderBuilder( int index) { return getHeaderFieldBuilder().getBuilder(index); } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public com.fullcontact.rpc.HeaderOrBuilder getHeaderOrBuilder( int index) { if (headerBuilder_ == null) { return header_.get(index); } else { return headerBuilder_.getMessageOrBuilder(index); } } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public java.util.List getHeaderOrBuilderList() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(header_); } } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public com.fullcontact.rpc.Header.Builder addHeaderBuilder() { return getHeaderFieldBuilder().addBuilder( com.fullcontact.rpc.Header.getDefaultInstance()); } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public com.fullcontact.rpc.Header.Builder addHeaderBuilder( int index) { return getHeaderFieldBuilder().addBuilder( index, com.fullcontact.rpc.Header.getDefaultInstance()); } /** *
     * List of headers, allows duplicated key names.
     * 
* * repeated .grpcjersey.Header header = 1; */ public java.util.List getHeaderBuilderList() { return getHeaderFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.fullcontact.rpc.Header, com.fullcontact.rpc.Header.Builder, com.fullcontact.rpc.HeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.fullcontact.rpc.Header, com.fullcontact.rpc.Header.Builder, com.fullcontact.rpc.HeaderOrBuilder>( header_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } @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:grpcjersey.Headers) } // @@protoc_insertion_point(class_scope:grpcjersey.Headers) private static final com.fullcontact.rpc.Headers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.fullcontact.rpc.Headers(); } public static com.fullcontact.rpc.Headers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Headers 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.fullcontact.rpc.Headers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy