
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/event_reporting/v2alpha/event_reporting_service.proto
// Protobuf Java Version: 3.25.1
package io.envoyproxy.envoy.service.event_reporting.v2alpha;
/**
*
* [#not-implemented-hide:]
* An events envoy sends to the management server.
*
*
* Protobuf type {@code envoy.service.event_reporting.v2alpha.StreamEventsRequest}
*/
public final class StreamEventsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.event_reporting.v2alpha.StreamEventsRequest)
StreamEventsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamEventsRequest.newBuilder() to construct.
private StreamEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamEventsRequest() {
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamEventsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.class, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Builder.class);
}
public interface IdentifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier)
com.google.protobuf.MessageOrBuilder {
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
* @return Whether the node field is set.
*/
boolean hasNode();
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
* @return The node.
*/
io.envoyproxy.envoy.api.v2.core.Node getNode();
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder();
}
/**
* Protobuf type {@code envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier}
*/
public static final class Identifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier)
IdentifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use Identifier.newBuilder() to construct.
private Identifier(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Identifier() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Identifier();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.class, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder.class);
}
private int bitField0_;
public static final int NODE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.api.v2.core.Node node_;
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
* @return The node.
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
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, getNode());
}
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, getNode());
}
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.event_reporting.v2alpha.StreamEventsRequest.Identifier)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier other = (io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) 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 (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 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.event_reporting.v2alpha.StreamEventsRequest.Identifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 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.event_reporting.v2alpha.StreamEventsRequest.Identifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 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.event_reporting.v2alpha.StreamEventsRequest.Identifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 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.event_reporting.v2alpha.StreamEventsRequest.Identifier parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 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.event_reporting.v2alpha.StreamEventsRequest.Identifier 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 envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier)
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.IdentifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_Identifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_Identifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.class, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_Identifier_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier build() {
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier buildPartial() {
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier result = new io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.node_ = nodeBuilder_ == null
? node_
: nodeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.event_reporting.v2alpha.StreamEventsRequest.Identifier) {
return mergeFrom((io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier other) {
if (other == io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
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(
getNodeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
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 io.envoyproxy.envoy.api.v2.core.Node node_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> nodeBuilder_;
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
* @return Whether the node field is set.
*/
public boolean hasNode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
* @return The node.
*/
public io.envoyproxy.envoy.api.v2.core.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder setNode(io.envoyproxy.envoy.api.v2.core.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
} else {
nodeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder setNode(
io.envoyproxy.envoy.api.v2.core.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder mergeNode(io.envoyproxy.envoy.api.v2.core.Node value) {
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
node_ != null &&
node_ != io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance()) {
getNodeBuilder().mergeFrom(value);
} else {
node_ = value;
}
} else {
nodeBuilder_.mergeFrom(value);
}
if (node_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public Builder clearNode() {
bitField0_ = (bitField0_ & ~0x00000001);
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v2.core.Node.Builder getNodeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
}
/**
*
* The node sending the event messages over the stream.
*
*
* .envoy.api.v2.core.Node node = 1 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
@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.event_reporting.v2alpha.StreamEventsRequest.Identifier)
}
// @@protoc_insertion_point(class_scope:envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier)
private static final io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier();
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Identifier 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.event_reporting.v2alpha.StreamEventsRequest.Identifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int IDENTIFIER_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier_;
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
* @return Whether the identifier field is set.
*/
@java.lang.Override
public boolean hasIdentifier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
* @return The identifier.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier getIdentifier() {
return identifier_ == null ? io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance() : identifier_;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.IdentifierOrBuilder getIdentifierOrBuilder() {
return identifier_ == null ? io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance() : identifier_;
}
public static final int EVENTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List events_;
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public com.google.protobuf.Any getEvents(int index) {
return events_.get(index);
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(
int index) {
return events_.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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getIdentifier());
}
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(2, events_.get(i));
}
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, getIdentifier());
}
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, events_.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 io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest other = (io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest) obj;
if (hasIdentifier() != other.hasIdentifier()) return false;
if (hasIdentifier()) {
if (!getIdentifier()
.equals(other.getIdentifier())) return false;
}
if (!getEventsList()
.equals(other.getEventsList())) 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 (hasIdentifier()) {
hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getIdentifier().hashCode();
}
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest 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.event_reporting.v2alpha.StreamEventsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest 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.event_reporting.v2alpha.StreamEventsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest 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.event_reporting.v2alpha.StreamEventsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest 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.event_reporting.v2alpha.StreamEventsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest 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.event_reporting.v2alpha.StreamEventsRequest 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;
}
/**
*
* [#not-implemented-hide:]
* An events envoy sends to the management server.
*
*
* Protobuf type {@code envoy.service.event_reporting.v2alpha.StreamEventsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.event_reporting.v2alpha.StreamEventsRequest)
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.class, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIdentifierFieldBuilder();
getEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
identifier_ = null;
if (identifierBuilder_ != null) {
identifierBuilder_.dispose();
identifierBuilder_ = null;
}
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
} else {
events_ = null;
eventsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.EventReportingServiceProto.internal_static_envoy_service_event_reporting_v2alpha_StreamEventsRequest_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest build() {
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest buildPartial() {
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest result = new io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest result) {
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.identifier_ = identifierBuilder_ == null
? identifier_
: identifierBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.event_reporting.v2alpha.StreamEventsRequest) {
return mergeFrom((io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest other) {
if (other == io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.getDefaultInstance()) return this;
if (other.hasIdentifier()) {
mergeIdentifier(other.getIdentifier());
}
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000002);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
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(
getIdentifierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.Any m =
input.readMessage(
com.google.protobuf.Any.parser(),
extensionRegistry);
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(m);
} else {
eventsBuilder_.addMessage(m);
}
break;
} // case 18
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.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.IdentifierOrBuilder> identifierBuilder_;
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
* @return Whether the identifier field is set.
*/
public boolean hasIdentifier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
* @return The identifier.
*/
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier getIdentifier() {
if (identifierBuilder_ == null) {
return identifier_ == null ? io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance() : identifier_;
} else {
return identifierBuilder_.getMessage();
}
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
public Builder setIdentifier(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier value) {
if (identifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
identifier_ = value;
} else {
identifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
public Builder setIdentifier(
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder builderForValue) {
if (identifierBuilder_ == null) {
identifier_ = builderForValue.build();
} else {
identifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
public Builder mergeIdentifier(io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier value) {
if (identifierBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
identifier_ != null &&
identifier_ != io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance()) {
getIdentifierBuilder().mergeFrom(value);
} else {
identifier_ = value;
}
} else {
identifierBuilder_.mergeFrom(value);
}
if (identifier_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
public Builder clearIdentifier() {
bitField0_ = (bitField0_ & ~0x00000001);
identifier_ = null;
if (identifierBuilder_ != null) {
identifierBuilder_.dispose();
identifierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder getIdentifierBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdentifierFieldBuilder().getBuilder();
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
public io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.IdentifierOrBuilder getIdentifierOrBuilder() {
if (identifierBuilder_ != null) {
return identifierBuilder_.getMessageOrBuilder();
} else {
return identifier_ == null ?
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.getDefaultInstance() : identifier_;
}
}
/**
*
* Identifier data that will only be sent in the first message on the stream. This is effectively
* structured metadata and is a performance optimization.
*
*
* .envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier identifier = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.IdentifierOrBuilder>
getIdentifierFieldBuilder() {
if (identifierBuilder_ == null) {
identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.Builder, io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest.IdentifierOrBuilder>(
getIdentifier(),
getParentForChildren(),
isClean());
identifier_ = null;
}
return identifierBuilder_;
}
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> eventsBuilder_;
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Any getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder setEvents(
int index, com.google.protobuf.Any value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder setEvents(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder addEvents(com.google.protobuf.Any value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder addEvents(
int index, com.google.protobuf.Any value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder addEvents(
com.google.protobuf.Any.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder addEvents(
int index, com.google.protobuf.Any.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder addAllEvents(
java.lang.Iterable extends com.google.protobuf.Any> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Any.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public java.util.List extends com.google.protobuf.AnyOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Any.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Any.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, com.google.protobuf.Any.getDefaultInstance());
}
/**
*
* Batch of events. When the stream is already active, it will be the events occurred
* since the last message had been sent. If the server receives unknown event type, it should
* silently ignore it.
*
* The following events are supported:
*
* * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>`
* * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>`
*
*
* repeated .google.protobuf.Any events = 2 [(.validate.rules) = { ... }
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
events_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@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.event_reporting.v2alpha.StreamEventsRequest)
}
// @@protoc_insertion_point(class_scope:envoy.service.event_reporting.v2alpha.StreamEventsRequest)
private static final io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest();
}
public static io.envoyproxy.envoy.service.event_reporting.v2alpha.StreamEventsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamEventsRequest 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.event_reporting.v2alpha.StreamEventsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy