main.java.com.streamlayer.files.FileMeta 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: streamlayer/files/files.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.files;
/**
* Protobuf type {@code streamlayer.files.FileMeta}
*/
public final class FileMeta extends
com.google.protobuf.GeneratedMessageLite<
FileMeta, FileMeta.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.files.FileMeta)
FileMetaOrBuilder {
private FileMeta() {
name_ = "";
type_ = "";
alias_ = "";
tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.String name_;
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
* string name = 1 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
* string name = 1 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int TYPE_FIELD_NUMBER = 2;
private java.lang.String type_;
/**
* string type = 2 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
return type_;
}
/**
* string type = 2 [json_name = "type"];
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(type_);
}
/**
* string type = 2 [json_name = "type"];
* @param value The type to set.
*/
private void setType(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
type_ = value;
}
/**
* string type = 2 [json_name = "type"];
*/
private void clearType() {
type_ = getDefaultInstance().getType();
}
/**
* string type = 2 [json_name = "type"];
* @param value The bytes for type to set.
*/
private void setTypeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
type_ = value.toStringUtf8();
}
public static final int ALIAS_FIELD_NUMBER = 3;
private java.lang.String alias_;
/**
* string alias = 3 [json_name = "alias"];
* @return The alias.
*/
@java.lang.Override
public java.lang.String getAlias() {
return alias_;
}
/**
* string alias = 3 [json_name = "alias"];
* @return The bytes for alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAliasBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(alias_);
}
/**
* string alias = 3 [json_name = "alias"];
* @param value The alias to set.
*/
private void setAlias(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
alias_ = value;
}
/**
* string alias = 3 [json_name = "alias"];
*/
private void clearAlias() {
alias_ = getDefaultInstance().getAlias();
}
/**
* string alias = 3 [json_name = "alias"];
* @param value The bytes for alias to set.
*/
private void setAliasBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
alias_ = value.toStringUtf8();
}
public static final int TAGS_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.ProtobufList tags_;
/**
* repeated string tags = 4 [json_name = "tags"];
* @return A list containing the tags.
*/
@java.lang.Override
public java.util.List getTagsList() {
return tags_;
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @return The count of tags.
*/
@java.lang.Override
public int getTagsCount() {
return tags_.size();
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param index The index of the element to return.
* @return The tags at the given index.
*/
@java.lang.Override
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
tags_.get(index));
}
private void ensureTagsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
tags_; if (!tmp.isModifiable()) {
tags_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param index The index to set the value at.
* @param value The tags to set.
*/
private void setTags(
int index, java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureTagsIsMutable();
tags_.set(index, value);
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param value The tags to add.
*/
private void addTags(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureTagsIsMutable();
tags_.add(value);
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param values The tags to add.
*/
private void addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, tags_);
}
/**
* repeated string tags = 4 [json_name = "tags"];
*/
private void clearTags() {
tags_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param value The bytes of the tags to add.
*/
private void addTagsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureTagsIsMutable();
tags_.add(value.toStringUtf8());
}
public static com.streamlayer.files.FileMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.files.FileMeta 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.streamlayer.files.FileMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.files.FileMeta 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.streamlayer.files.FileMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.files.FileMeta 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.streamlayer.files.FileMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.files.FileMeta 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.streamlayer.files.FileMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.files.FileMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.files.FileMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.files.FileMeta 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.streamlayer.files.FileMeta prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.files.FileMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.files.FileMeta, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.files.FileMeta)
com.streamlayer.files.FileMetaOrBuilder {
// Construct using com.streamlayer.files.FileMeta.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 1 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
* string name = 1 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
* string type = 2 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
return instance.getType();
}
/**
* string type = 2 [json_name = "type"];
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
return instance.getTypeBytes();
}
/**
* string type = 2 [json_name = "type"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
copyOnWrite();
instance.setType(value);
return this;
}
/**
* string type = 2 [json_name = "type"];
* @return This builder for chaining.
*/
public Builder clearType() {
copyOnWrite();
instance.clearType();
return this;
}
/**
* string type = 2 [json_name = "type"];
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTypeBytes(value);
return this;
}
/**
* string alias = 3 [json_name = "alias"];
* @return The alias.
*/
@java.lang.Override
public java.lang.String getAlias() {
return instance.getAlias();
}
/**
* string alias = 3 [json_name = "alias"];
* @return The bytes for alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAliasBytes() {
return instance.getAliasBytes();
}
/**
* string alias = 3 [json_name = "alias"];
* @param value The alias to set.
* @return This builder for chaining.
*/
public Builder setAlias(
java.lang.String value) {
copyOnWrite();
instance.setAlias(value);
return this;
}
/**
* string alias = 3 [json_name = "alias"];
* @return This builder for chaining.
*/
public Builder clearAlias() {
copyOnWrite();
instance.clearAlias();
return this;
}
/**
* string alias = 3 [json_name = "alias"];
* @param value The bytes for alias to set.
* @return This builder for chaining.
*/
public Builder setAliasBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAliasBytes(value);
return this;
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @return A list containing the tags.
*/
@java.lang.Override
public java.util.List
getTagsList() {
return java.util.Collections.unmodifiableList(
instance.getTagsList());
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @return The count of tags.
*/
@java.lang.Override
public int getTagsCount() {
return instance.getTagsCount();
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param index The index of the element to return.
* @return The tags at the given index.
*/
@java.lang.Override
public java.lang.String getTags(int index) {
return instance.getTags(index);
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return instance.getTagsBytes(index);
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
copyOnWrite();
instance.setTags(index, value);
return this;
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
copyOnWrite();
instance.addTags(value);
return this;
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllTags(values);
return this;
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @return This builder for chaining.
*/
public Builder clearTags() {
copyOnWrite();
instance.clearTags();
return this;
}
/**
* repeated string tags = 4 [json_name = "tags"];
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addTagsBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.files.FileMeta)
}
@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.streamlayer.files.FileMeta();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"name_",
"type_",
"alias_",
"tags_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0208\u0004\u021a";
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.streamlayer.files.FileMeta.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:streamlayer.files.FileMeta)
private static final com.streamlayer.files.FileMeta DEFAULT_INSTANCE;
static {
FileMeta defaultInstance = new FileMeta();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
FileMeta.class, defaultInstance);
}
public static com.streamlayer.files.FileMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}