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

io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/service/ext_proc/v3/external_processor.proto

// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.service.ext_proc.v3;

/**
 * 
 * This message causes the filter to attempt to create a locally
 * generated response, send it  downstream, stop processing
 * additional filters, and ignore any additional messages received
 * from the remote server for this request or response. If a response
 * has already started, then  this will either ship the reply directly
 * to the downstream codec, or reset the stream.
 * [#next-free-field: 6]
 * 
* * Protobuf type {@code envoy.service.ext_proc.v3.ImmediateResponse} */ public final class ImmediateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.ext_proc.v3.ImmediateResponse) ImmediateResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ImmediateResponse.newBuilder() to construct. private ImmediateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImmediateResponse() { body_ = com.google.protobuf.ByteString.EMPTY; details_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImmediateResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ImmediateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ImmediateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.class, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private io.envoyproxy.envoy.type.v3.HttpStatus status_; /** *
   * The response code to return
   * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The response code to return
   * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } * @return The status. */ @java.lang.Override public io.envoyproxy.envoy.type.v3.HttpStatus getStatus() { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } /** *
   * The response code to return
   * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } public static final int HEADERS_FIELD_NUMBER = 2; private io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation headers_; /** *
   * Apply changes to the default headers, which will include content-type.
   * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; * @return Whether the headers field is set. */ @java.lang.Override public boolean hasHeaders() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Apply changes to the default headers, which will include content-type.
   * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; * @return The headers. */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getHeaders() { return headers_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance() : headers_; } /** *
   * Apply changes to the default headers, which will include content-type.
   * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder getHeadersOrBuilder() { return headers_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance() : headers_; } public static final int BODY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** *
   * The message body to return with the response which is sent using the
   * text/plain content type, or encoded in the grpc-message header.
   * 
* * bytes body = 3; * @return The body. */ @java.lang.Override public com.google.protobuf.ByteString getBody() { return body_; } public static final int GRPC_STATUS_FIELD_NUMBER = 4; private io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus grpcStatus_; /** *
   * If set, then include a gRPC status trailer.
   * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; * @return Whether the grpcStatus field is set. */ @java.lang.Override public boolean hasGrpcStatus() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * If set, then include a gRPC status trailer.
   * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; * @return The grpcStatus. */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus getGrpcStatus() { return grpcStatus_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.getDefaultInstance() : grpcStatus_; } /** *
   * If set, then include a gRPC status trailer.
   * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatusOrBuilder getGrpcStatusOrBuilder() { return grpcStatus_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.getDefaultInstance() : grpcStatus_; } public static final int DETAILS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object details_ = ""; /** *
   * A string detailing why this local reply was sent, which may be included
   * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
   * command operator field for use in access logging).
   * 
* * string details = 5; * @return The details. */ @java.lang.Override public java.lang.String getDetails() { java.lang.Object ref = details_; 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(); details_ = s; return s; } } /** *
   * A string detailing why this local reply was sent, which may be included
   * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
   * command operator field for use in access logging).
   * 
* * string details = 5; * @return The bytes for details. */ @java.lang.Override public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); details_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getHeaders()); } if (!body_.isEmpty()) { output.writeBytes(3, body_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getGrpcStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, details_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHeaders()); } if (!body_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, body_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getGrpcStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, details_); } 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 io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse)) { return super.equals(obj); } io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse other = (io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (hasHeaders() != other.hasHeaders()) return false; if (hasHeaders()) { if (!getHeaders() .equals(other.getHeaders())) return false; } if (!getBody() .equals(other.getBody())) return false; if (hasGrpcStatus() != other.hasGrpcStatus()) return false; if (hasGrpcStatus()) { if (!getGrpcStatus() .equals(other.getGrpcStatus())) return false; } if (!getDetails() .equals(other.getDetails())) 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 (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasHeaders()) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeaders().hashCode(); } hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); if (hasGrpcStatus()) { hash = (37 * hash) + GRPC_STATUS_FIELD_NUMBER; hash = (53 * hash) + getGrpcStatus().hashCode(); } hash = (37 * hash) + DETAILS_FIELD_NUMBER; hash = (53 * hash) + getDetails().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse 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 io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse 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 io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse 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(io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse 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; } /** *
   * This message causes the filter to attempt to create a locally
   * generated response, send it  downstream, stop processing
   * additional filters, and ignore any additional messages received
   * from the remote server for this request or response. If a response
   * has already started, then  this will either ship the reply directly
   * to the downstream codec, or reset the stream.
   * [#next-free-field: 6]
   * 
* * Protobuf type {@code envoy.service.ext_proc.v3.ImmediateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.ext_proc.v3.ImmediateResponse) io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ImmediateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ImmediateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.class, io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.Builder.class); } // Construct using io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatusFieldBuilder(); getHeadersFieldBuilder(); getGrpcStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } headers_ = null; if (headersBuilder_ != null) { headersBuilder_.dispose(); headersBuilder_ = null; } body_ = com.google.protobuf.ByteString.EMPTY; grpcStatus_ = null; if (grpcStatusBuilder_ != null) { grpcStatusBuilder_.dispose(); grpcStatusBuilder_ = null; } details_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.ext_proc.v3.ExternalProcessorProto.internal_static_envoy_service_ext_proc_v3_ImmediateResponse_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse getDefaultInstanceForType() { return io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse build() { io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse buildPartial() { io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse result = new io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.headers_ = headersBuilder_ == null ? headers_ : headersBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.body_ = body_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.grpcStatus_ = grpcStatusBuilder_ == null ? grpcStatus_ : grpcStatusBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.details_ = details_; } result.bitField0_ |= to_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 io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse) { return mergeFrom((io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse other) { if (other == io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasHeaders()) { mergeHeaders(other.getHeaders()); } if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { setBody(other.getBody()); } if (other.hasGrpcStatus()) { mergeGrpcStatus(other.getGrpcStatus()); } if (!other.getDetails().isEmpty()) { details_ = other.details_; bitField0_ |= 0x00000010; onChanged(); } 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: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getHeadersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { body_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getGrpcStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { details_ = input.readStringRequireUtf8(); 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 io.envoyproxy.envoy.type.v3.HttpStatus status_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.HttpStatus, io.envoyproxy.envoy.type.v3.HttpStatus.Builder, io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder> statusBuilder_; /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } * @return The status. */ public io.envoyproxy.envoy.type.v3.HttpStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ public Builder setStatus(io.envoyproxy.envoy.type.v3.HttpStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ public Builder setStatus( io.envoyproxy.envoy.type.v3.HttpStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ public Builder mergeStatus(io.envoyproxy.envoy.type.v3.HttpStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.v3.HttpStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.envoyproxy.envoy.type.v3.HttpStatus.getDefaultInstance() : status_; } } /** *
     * The response code to return
     * 
* * .envoy.type.v3.HttpStatus status = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.HttpStatus, io.envoyproxy.envoy.type.v3.HttpStatus.Builder, io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.v3.HttpStatus, io.envoyproxy.envoy.type.v3.HttpStatus.Builder, io.envoyproxy.envoy.type.v3.HttpStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation headers_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder> headersBuilder_; /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; * @return Whether the headers field is set. */ public boolean hasHeaders() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; * @return The headers. */ public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation getHeaders() { if (headersBuilder_ == null) { return headers_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance() : headers_; } else { return headersBuilder_.getMessage(); } } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ public Builder setHeaders(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headers_ = value; } else { headersBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ public Builder setHeaders( io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder builderForValue) { if (headersBuilder_ == null) { headers_ = builderForValue.build(); } else { headersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ public Builder mergeHeaders(io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation value) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && headers_ != null && headers_ != io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance()) { getHeadersBuilder().mergeFrom(value); } else { headers_ = value; } } else { headersBuilder_.mergeFrom(value); } if (headers_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ public Builder clearHeaders() { bitField0_ = (bitField0_ & ~0x00000002); headers_ = null; if (headersBuilder_ != null) { headersBuilder_.dispose(); headersBuilder_ = null; } onChanged(); return this; } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder getHeadersBuilder() { bitField0_ |= 0x00000002; onChanged(); return getHeadersFieldBuilder().getBuilder(); } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ public io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder getHeadersOrBuilder() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilder(); } else { return headers_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.getDefaultInstance() : headers_; } } /** *
     * Apply changes to the default headers, which will include content-type.
     * 
* * .envoy.service.ext_proc.v3.HeaderMutation headers = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutation.Builder, io.envoyproxy.envoy.service.ext_proc.v3.HeaderMutationOrBuilder>( getHeaders(), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** *
     * The message body to return with the response which is sent using the
     * text/plain content type, or encoded in the grpc-message header.
     * 
* * bytes body = 3; * @return The body. */ @java.lang.Override public com.google.protobuf.ByteString getBody() { return body_; } /** *
     * The message body to return with the response which is sent using the
     * text/plain content type, or encoded in the grpc-message header.
     * 
* * bytes body = 3; * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The message body to return with the response which is sent using the
     * text/plain content type, or encoded in the grpc-message header.
     * 
* * bytes body = 3; * @return This builder for chaining. */ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000004); body_ = getDefaultInstance().getBody(); onChanged(); return this; } private io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus grpcStatus_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus, io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.Builder, io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatusOrBuilder> grpcStatusBuilder_; /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; * @return Whether the grpcStatus field is set. */ public boolean hasGrpcStatus() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; * @return The grpcStatus. */ public io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus getGrpcStatus() { if (grpcStatusBuilder_ == null) { return grpcStatus_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.getDefaultInstance() : grpcStatus_; } else { return grpcStatusBuilder_.getMessage(); } } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ public Builder setGrpcStatus(io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus value) { if (grpcStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } grpcStatus_ = value; } else { grpcStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ public Builder setGrpcStatus( io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.Builder builderForValue) { if (grpcStatusBuilder_ == null) { grpcStatus_ = builderForValue.build(); } else { grpcStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ public Builder mergeGrpcStatus(io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus value) { if (grpcStatusBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && grpcStatus_ != null && grpcStatus_ != io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.getDefaultInstance()) { getGrpcStatusBuilder().mergeFrom(value); } else { grpcStatus_ = value; } } else { grpcStatusBuilder_.mergeFrom(value); } if (grpcStatus_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ public Builder clearGrpcStatus() { bitField0_ = (bitField0_ & ~0x00000008); grpcStatus_ = null; if (grpcStatusBuilder_ != null) { grpcStatusBuilder_.dispose(); grpcStatusBuilder_ = null; } onChanged(); return this; } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ public io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.Builder getGrpcStatusBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGrpcStatusFieldBuilder().getBuilder(); } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ public io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatusOrBuilder getGrpcStatusOrBuilder() { if (grpcStatusBuilder_ != null) { return grpcStatusBuilder_.getMessageOrBuilder(); } else { return grpcStatus_ == null ? io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.getDefaultInstance() : grpcStatus_; } } /** *
     * If set, then include a gRPC status trailer.
     * 
* * .envoy.service.ext_proc.v3.GrpcStatus grpc_status = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus, io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.Builder, io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatusOrBuilder> getGrpcStatusFieldBuilder() { if (grpcStatusBuilder_ == null) { grpcStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus, io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatus.Builder, io.envoyproxy.envoy.service.ext_proc.v3.GrpcStatusOrBuilder>( getGrpcStatus(), getParentForChildren(), isClean()); grpcStatus_ = null; } return grpcStatusBuilder_; } private java.lang.Object details_ = ""; /** *
     * A string detailing why this local reply was sent, which may be included
     * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
     * command operator field for use in access logging).
     * 
* * string details = 5; * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A string detailing why this local reply was sent, which may be included
     * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
     * command operator field for use in access logging).
     * 
* * string details = 5; * @return The bytes for details. */ public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); details_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A string detailing why this local reply was sent, which may be included
     * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
     * command operator field for use in access logging).
     * 
* * string details = 5; * @param value The details to set. * @return This builder for chaining. */ public Builder setDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } details_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * A string detailing why this local reply was sent, which may be included
     * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
     * command operator field for use in access logging).
     * 
* * string details = 5; * @return This builder for chaining. */ public Builder clearDetails() { details_ = getDefaultInstance().getDetails(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * A string detailing why this local reply was sent, which may be included
     * in log and debug output (e.g. this populates the %RESPONSE_CODE_DETAILS%
     * command operator field for use in access logging).
     * 
* * string details = 5; * @param value The bytes for details to set. * @return This builder for chaining. */ public Builder setDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); details_ = value; bitField0_ |= 0x00000010; 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:envoy.service.ext_proc.v3.ImmediateResponse) } // @@protoc_insertion_point(class_scope:envoy.service.ext_proc.v3.ImmediateResponse) private static final io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse(); } public static io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImmediateResponse 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 io.envoyproxy.envoy.service.ext_proc.v3.ImmediateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy