All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
xyz.block.ftl.v1.ListConfigRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/v1/ftl.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1;
/**
* Protobuf type {@code xyz.block.ftl.v1.ListConfigRequest}
*/
public final class ListConfigRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.ListConfigRequest)
ListConfigRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListConfigRequest.newBuilder() to construct.
private ListConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ListConfigRequest() {
module_ = "";
provider_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListConfigRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_ListConfigRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_ListConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.ListConfigRequest.class, xyz.block.ftl.v1.ListConfigRequest.Builder.class);
}
private int bitField0_;
public static final int MODULE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object module_ = "";
/**
* optional string module = 1;
* @return Whether the module field is set.
*/
@java.lang.Override
public boolean hasModule() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string module = 1;
* @return The module.
*/
@java.lang.Override
public java.lang.String getModule() {
java.lang.Object ref = module_;
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();
module_ = s;
return s;
}
}
/**
* optional string module = 1;
* @return The bytes for module.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModuleBytes() {
java.lang.Object ref = module_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
module_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCLUDE_VALUES_FIELD_NUMBER = 2;
private boolean includeValues_ = false;
/**
* optional bool include_values = 2;
* @return Whether the includeValues field is set.
*/
@java.lang.Override
public boolean hasIncludeValues() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool include_values = 2;
* @return The includeValues.
*/
@java.lang.Override
public boolean getIncludeValues() {
return includeValues_;
}
public static final int PROVIDER_FIELD_NUMBER = 3;
private int provider_ = 0;
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return Whether the provider field is set.
*/
@java.lang.Override public boolean hasProvider() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return The enum numeric value on the wire for provider.
*/
@java.lang.Override public int getProviderValue() {
return provider_;
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return The provider.
*/
@java.lang.Override public xyz.block.ftl.v1.ConfigProvider getProvider() {
xyz.block.ftl.v1.ConfigProvider result = xyz.block.ftl.v1.ConfigProvider.forNumber(provider_);
return result == null ? xyz.block.ftl.v1.ConfigProvider.UNRECOGNIZED : result;
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, module_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, includeValues_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, provider_);
}
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.GeneratedMessageV3.computeStringSize(1, module_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, includeValues_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, provider_);
}
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 xyz.block.ftl.v1.ListConfigRequest)) {
return super.equals(obj);
}
xyz.block.ftl.v1.ListConfigRequest other = (xyz.block.ftl.v1.ListConfigRequest) obj;
if (hasModule() != other.hasModule()) return false;
if (hasModule()) {
if (!getModule()
.equals(other.getModule())) return false;
}
if (hasIncludeValues() != other.hasIncludeValues()) return false;
if (hasIncludeValues()) {
if (getIncludeValues()
!= other.getIncludeValues()) return false;
}
if (hasProvider() != other.hasProvider()) return false;
if (hasProvider()) {
if (provider_ != other.provider_) 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 (hasModule()) {
hash = (37 * hash) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
}
if (hasIncludeValues()) {
hash = (37 * hash) + INCLUDE_VALUES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeValues());
}
if (hasProvider()) {
hash = (37 * hash) + PROVIDER_FIELD_NUMBER;
hash = (53 * hash) + provider_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.ListConfigRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.ListConfigRequest 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 xyz.block.ftl.v1.ListConfigRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.ListConfigRequest 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 xyz.block.ftl.v1.ListConfigRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.ListConfigRequest 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(xyz.block.ftl.v1.ListConfigRequest 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 xyz.block.ftl.v1.ListConfigRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.ListConfigRequest)
xyz.block.ftl.v1.ListConfigRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_ListConfigRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_ListConfigRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.ListConfigRequest.class, xyz.block.ftl.v1.ListConfigRequest.Builder.class);
}
// Construct using xyz.block.ftl.v1.ListConfigRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
module_ = "";
includeValues_ = false;
provider_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.v1.Ftl.internal_static_xyz_block_ftl_v1_ListConfigRequest_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.ListConfigRequest getDefaultInstanceForType() {
return xyz.block.ftl.v1.ListConfigRequest.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.ListConfigRequest build() {
xyz.block.ftl.v1.ListConfigRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.ListConfigRequest buildPartial() {
xyz.block.ftl.v1.ListConfigRequest result = new xyz.block.ftl.v1.ListConfigRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.v1.ListConfigRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.module_ = module_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.includeValues_ = includeValues_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.provider_ = provider_;
to_bitField0_ |= 0x00000004;
}
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 xyz.block.ftl.v1.ListConfigRequest) {
return mergeFrom((xyz.block.ftl.v1.ListConfigRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.ListConfigRequest other) {
if (other == xyz.block.ftl.v1.ListConfigRequest.getDefaultInstance()) return this;
if (other.hasModule()) {
module_ = other.module_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasIncludeValues()) {
setIncludeValues(other.getIncludeValues());
}
if (other.hasProvider()) {
setProvider(other.getProvider());
}
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: {
module_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
includeValues_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
provider_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object module_ = "";
/**
* optional string module = 1;
* @return Whether the module field is set.
*/
public boolean hasModule() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string module = 1;
* @return The module.
*/
public java.lang.String getModule() {
java.lang.Object ref = module_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
module_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string module = 1;
* @return The bytes for module.
*/
public com.google.protobuf.ByteString
getModuleBytes() {
java.lang.Object ref = module_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
module_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string module = 1;
* @param value The module to set.
* @return This builder for chaining.
*/
public Builder setModule(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
module_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string module = 1;
* @return This builder for chaining.
*/
public Builder clearModule() {
module_ = getDefaultInstance().getModule();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string module = 1;
* @param value The bytes for module to set.
* @return This builder for chaining.
*/
public Builder setModuleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
module_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean includeValues_ ;
/**
* optional bool include_values = 2;
* @return Whether the includeValues field is set.
*/
@java.lang.Override
public boolean hasIncludeValues() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool include_values = 2;
* @return The includeValues.
*/
@java.lang.Override
public boolean getIncludeValues() {
return includeValues_;
}
/**
* optional bool include_values = 2;
* @param value The includeValues to set.
* @return This builder for chaining.
*/
public Builder setIncludeValues(boolean value) {
includeValues_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional bool include_values = 2;
* @return This builder for chaining.
*/
public Builder clearIncludeValues() {
bitField0_ = (bitField0_ & ~0x00000002);
includeValues_ = false;
onChanged();
return this;
}
private int provider_ = 0;
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return Whether the provider field is set.
*/
@java.lang.Override public boolean hasProvider() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return The enum numeric value on the wire for provider.
*/
@java.lang.Override public int getProviderValue() {
return provider_;
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @param value The enum numeric value on the wire for provider to set.
* @return This builder for chaining.
*/
public Builder setProviderValue(int value) {
provider_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return The provider.
*/
@java.lang.Override
public xyz.block.ftl.v1.ConfigProvider getProvider() {
xyz.block.ftl.v1.ConfigProvider result = xyz.block.ftl.v1.ConfigProvider.forNumber(provider_);
return result == null ? xyz.block.ftl.v1.ConfigProvider.UNRECOGNIZED : result;
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @param value The provider to set.
* @return This builder for chaining.
*/
public Builder setProvider(xyz.block.ftl.v1.ConfigProvider value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
provider_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .xyz.block.ftl.v1.ConfigProvider provider = 3;
* @return This builder for chaining.
*/
public Builder clearProvider() {
bitField0_ = (bitField0_ & ~0x00000004);
provider_ = 0;
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:xyz.block.ftl.v1.ListConfigRequest)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.ListConfigRequest)
private static final xyz.block.ftl.v1.ListConfigRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.v1.ListConfigRequest();
}
public static xyz.block.ftl.v1.ListConfigRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListConfigRequest 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 xyz.block.ftl.v1.ListConfigRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}