main.java.com.grpc.load.v1.LoadResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/load/v1/load.proto
// Protobuf Java Version: 3.25.3
package com.grpc.load.v1;
/**
* Protobuf type {@code grpc.load.v1.LoadResponse}
*/
public final class LoadResponse extends
com.google.protobuf.GeneratedMessageLite<
LoadResponse, LoadResponse.Builder> implements
// @@protoc_insertion_point(message_implements:grpc.load.v1.LoadResponse)
LoadResponseOrBuilder {
private LoadResponse() {
body_ = emptyProtobufList();
}
public interface BodyOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.load.v1.LoadResponse.Body)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
* @return Whether the content field is set.
*/
boolean hasContent();
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
* @return The content.
*/
com.google.protobuf.Any getContent();
}
/**
* Protobuf type {@code grpc.load.v1.LoadResponse.Body}
*/
public static final class Body extends
com.google.protobuf.GeneratedMessageLite<
Body, Body.Builder> implements
// @@protoc_insertion_point(message_implements:grpc.load.v1.LoadResponse.Body)
BodyOrBuilder {
private Body() {
}
private int bitField0_;
public static final int CONTENT_FIELD_NUMBER = 1;
private com.google.protobuf.Any content_;
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
@java.lang.Override
public boolean hasContent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
@java.lang.Override
public com.google.protobuf.Any getContent() {
return content_ == null ? com.google.protobuf.Any.getDefaultInstance() : content_;
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
private void setContent(com.google.protobuf.Any value) {
value.getClass();
content_ = value;
bitField0_ |= 0x00000001;
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeContent(com.google.protobuf.Any value) {
value.getClass();
if (content_ != null &&
content_ != com.google.protobuf.Any.getDefaultInstance()) {
content_ =
com.google.protobuf.Any.newBuilder(content_).mergeFrom(value).buildPartial();
} else {
content_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
private void clearContent() { content_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse.Body parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.grpc.load.v1.LoadResponse.Body parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.grpc.load.v1.LoadResponse.Body parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.grpc.load.v1.LoadResponse.Body prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code grpc.load.v1.LoadResponse.Body}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.grpc.load.v1.LoadResponse.Body, Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.load.v1.LoadResponse.Body)
com.grpc.load.v1.LoadResponse.BodyOrBuilder {
// Construct using com.grpc.load.v1.LoadResponse.Body.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
@java.lang.Override
public boolean hasContent() {
return instance.hasContent();
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
@java.lang.Override
public com.google.protobuf.Any getContent() {
return instance.getContent();
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
public Builder setContent(com.google.protobuf.Any value) {
copyOnWrite();
instance.setContent(value);
return this;
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
public Builder setContent(
com.google.protobuf.Any.Builder builderForValue) {
copyOnWrite();
instance.setContent(builderForValue.build());
return this;
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
public Builder mergeContent(com.google.protobuf.Any value) {
copyOnWrite();
instance.mergeContent(value);
return this;
}
/**
* .google.protobuf.Any content = 1 [json_name = "content"];
*/
public Builder clearContent() { copyOnWrite();
instance.clearContent();
return this;
}
// @@protoc_insertion_point(builder_scope:grpc.load.v1.LoadResponse.Body)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.grpc.load.v1.LoadResponse.Body();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"content_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u1009\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.grpc.load.v1.LoadResponse.Body.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:grpc.load.v1.LoadResponse.Body)
private static final com.grpc.load.v1.LoadResponse.Body DEFAULT_INSTANCE;
static {
Body defaultInstance = new Body();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Body.class, defaultInstance);
}
public static com.grpc.load.v1.LoadResponse.Body getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public static final int BODY_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList body_;
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
@java.lang.Override
public java.util.List getBodyList() {
return body_;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public java.util.List extends com.grpc.load.v1.LoadResponse.BodyOrBuilder>
getBodyOrBuilderList() {
return body_;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
@java.lang.Override
public int getBodyCount() {
return body_.size();
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
@java.lang.Override
public com.grpc.load.v1.LoadResponse.Body getBody(int index) {
return body_.get(index);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public com.grpc.load.v1.LoadResponse.BodyOrBuilder getBodyOrBuilder(
int index) {
return body_.get(index);
}
private void ensureBodyIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = body_;
if (!tmp.isModifiable()) {
body_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
private void setBody(
int index, com.grpc.load.v1.LoadResponse.Body value) {
value.getClass();
ensureBodyIsMutable();
body_.set(index, value);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
private void addBody(com.grpc.load.v1.LoadResponse.Body value) {
value.getClass();
ensureBodyIsMutable();
body_.add(value);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
private void addBody(
int index, com.grpc.load.v1.LoadResponse.Body value) {
value.getClass();
ensureBodyIsMutable();
body_.add(index, value);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
private void addAllBody(
java.lang.Iterable extends com.grpc.load.v1.LoadResponse.Body> values) {
ensureBodyIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, body_);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
private void clearBody() {
body_ = emptyProtobufList();
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
private void removeBody(int index) {
ensureBodyIsMutable();
body_.remove(index);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.grpc.load.v1.LoadResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.grpc.load.v1.LoadResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.grpc.load.v1.LoadResponse prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code grpc.load.v1.LoadResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.grpc.load.v1.LoadResponse, Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.load.v1.LoadResponse)
com.grpc.load.v1.LoadResponseOrBuilder {
// Construct using com.grpc.load.v1.LoadResponse.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
@java.lang.Override
public java.util.List getBodyList() {
return java.util.Collections.unmodifiableList(
instance.getBodyList());
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
@java.lang.Override
public int getBodyCount() {
return instance.getBodyCount();
}/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
@java.lang.Override
public com.grpc.load.v1.LoadResponse.Body getBody(int index) {
return instance.getBody(index);
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder setBody(
int index, com.grpc.load.v1.LoadResponse.Body value) {
copyOnWrite();
instance.setBody(index, value);
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder setBody(
int index, com.grpc.load.v1.LoadResponse.Body.Builder builderForValue) {
copyOnWrite();
instance.setBody(index,
builderForValue.build());
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder addBody(com.grpc.load.v1.LoadResponse.Body value) {
copyOnWrite();
instance.addBody(value);
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder addBody(
int index, com.grpc.load.v1.LoadResponse.Body value) {
copyOnWrite();
instance.addBody(index, value);
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder addBody(
com.grpc.load.v1.LoadResponse.Body.Builder builderForValue) {
copyOnWrite();
instance.addBody(builderForValue.build());
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder addBody(
int index, com.grpc.load.v1.LoadResponse.Body.Builder builderForValue) {
copyOnWrite();
instance.addBody(index,
builderForValue.build());
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder addAllBody(
java.lang.Iterable extends com.grpc.load.v1.LoadResponse.Body> values) {
copyOnWrite();
instance.addAllBody(values);
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder clearBody() {
copyOnWrite();
instance.clearBody();
return this;
}
/**
* repeated .grpc.load.v1.LoadResponse.Body body = 1 [json_name = "body"];
*/
public Builder removeBody(int index) {
copyOnWrite();
instance.removeBody(index);
return this;
}
// @@protoc_insertion_point(builder_scope:grpc.load.v1.LoadResponse)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.grpc.load.v1.LoadResponse();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"body_",
com.grpc.load.v1.LoadResponse.Body.class,
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.grpc.load.v1.LoadResponse.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:grpc.load.v1.LoadResponse)
private static final com.grpc.load.v1.LoadResponse DEFAULT_INSTANCE;
static {
LoadResponse defaultInstance = new LoadResponse();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
LoadResponse.class, defaultInstance);
}
public static com.grpc.load.v1.LoadResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}