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

xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse Maven / Gradle / Ivy

There is a newer version: 0.397.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xyz/block/ftl/v1/language/language.proto

// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.language;

/**
 * Protobuf type {@code xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse}
 */
public final class GetCreateModuleFlagsResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse)
    GetCreateModuleFlagsResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetCreateModuleFlagsResponse.newBuilder() to construct.
  private GetCreateModuleFlagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GetCreateModuleFlagsResponse() {
    flags_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new GetCreateModuleFlagsResponse();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.class, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Builder.class);
  }

  public interface FlagOrBuilder extends
      // @@protoc_insertion_point(interface_extends:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string name = 1;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * string name = 1;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * string help = 2;
     * @return The help.
     */
    java.lang.String getHelp();
    /**
     * string help = 2;
     * @return The bytes for help.
     */
    com.google.protobuf.ByteString
        getHelpBytes();

    /**
     * optional string envar = 3;
     * @return Whether the envar field is set.
     */
    boolean hasEnvar();
    /**
     * optional string envar = 3;
     * @return The envar.
     */
    java.lang.String getEnvar();
    /**
     * optional string envar = 3;
     * @return The bytes for envar.
     */
    com.google.protobuf.ByteString
        getEnvarBytes();

    /**
     * 
     * short must be a single character
     * 
* * optional string short = 4; * @return Whether the short field is set. */ boolean hasShort(); /** *
     * short must be a single character
     * 
* * optional string short = 4; * @return The short. */ java.lang.String getShort(); /** *
     * short must be a single character
     * 
* * optional string short = 4; * @return The bytes for short. */ com.google.protobuf.ByteString getShortBytes(); /** * optional string placeholder = 5; * @return Whether the placeholder field is set. */ boolean hasPlaceholder(); /** * optional string placeholder = 5; * @return The placeholder. */ java.lang.String getPlaceholder(); /** * optional string placeholder = 5; * @return The bytes for placeholder. */ com.google.protobuf.ByteString getPlaceholderBytes(); /** * optional string default = 6; * @return Whether the default field is set. */ boolean hasDefault(); /** * optional string default = 6; * @return The default. */ java.lang.String getDefault(); /** * optional string default = 6; * @return The bytes for default. */ com.google.protobuf.ByteString getDefaultBytes(); } /** * Protobuf type {@code xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag} */ public static final class Flag extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag) FlagOrBuilder { private static final long serialVersionUID = 0L; // Use Flag.newBuilder() to construct. private Flag(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Flag() { name_ = ""; help_ = ""; envar_ = ""; short_ = ""; placeholder_ = ""; default_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Flag(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_Flag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_Flag_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.class, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HELP_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object help_ = ""; /** * string help = 2; * @return The help. */ @java.lang.Override public java.lang.String getHelp() { java.lang.Object ref = help_; 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(); help_ = s; return s; } } /** * string help = 2; * @return The bytes for help. */ @java.lang.Override public com.google.protobuf.ByteString getHelpBytes() { java.lang.Object ref = help_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); help_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVAR_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object envar_ = ""; /** * optional string envar = 3; * @return Whether the envar field is set. */ @java.lang.Override public boolean hasEnvar() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string envar = 3; * @return The envar. */ @java.lang.Override public java.lang.String getEnvar() { java.lang.Object ref = envar_; 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(); envar_ = s; return s; } } /** * optional string envar = 3; * @return The bytes for envar. */ @java.lang.Override public com.google.protobuf.ByteString getEnvarBytes() { java.lang.Object ref = envar_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); envar_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHORT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object short_ = ""; /** *
     * short must be a single character
     * 
* * optional string short = 4; * @return Whether the short field is set. */ @java.lang.Override public boolean hasShort() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * short must be a single character
     * 
* * optional string short = 4; * @return The short. */ @java.lang.Override public java.lang.String getShort() { java.lang.Object ref = short_; 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(); short_ = s; return s; } } /** *
     * short must be a single character
     * 
* * optional string short = 4; * @return The bytes for short. */ @java.lang.Override public com.google.protobuf.ByteString getShortBytes() { java.lang.Object ref = short_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); short_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLACEHOLDER_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object placeholder_ = ""; /** * optional string placeholder = 5; * @return Whether the placeholder field is set. */ @java.lang.Override public boolean hasPlaceholder() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string placeholder = 5; * @return The placeholder. */ @java.lang.Override public java.lang.String getPlaceholder() { java.lang.Object ref = placeholder_; 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(); placeholder_ = s; return s; } } /** * optional string placeholder = 5; * @return The bytes for placeholder. */ @java.lang.Override public com.google.protobuf.ByteString getPlaceholderBytes() { java.lang.Object ref = placeholder_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); placeholder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object default_ = ""; /** * optional string default = 6; * @return Whether the default field is set. */ @java.lang.Override public boolean hasDefault() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string default = 6; * @return The default. */ @java.lang.Override public java.lang.String getDefault() { java.lang.Object ref = default_; 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(); default_ = s; return s; } } /** * optional string default = 6; * @return The bytes for default. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultBytes() { java.lang.Object ref = default_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); default_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(help_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, help_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, envar_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, short_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, placeholder_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, default_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(help_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, help_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, envar_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, short_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, placeholder_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, default_); } 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.language.GetCreateModuleFlagsResponse.Flag)) { return super.equals(obj); } xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag other = (xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag) obj; if (!getName() .equals(other.getName())) return false; if (!getHelp() .equals(other.getHelp())) return false; if (hasEnvar() != other.hasEnvar()) return false; if (hasEnvar()) { if (!getEnvar() .equals(other.getEnvar())) return false; } if (hasShort() != other.hasShort()) return false; if (hasShort()) { if (!getShort() .equals(other.getShort())) return false; } if (hasPlaceholder() != other.hasPlaceholder()) return false; if (hasPlaceholder()) { if (!getPlaceholder() .equals(other.getPlaceholder())) return false; } if (hasDefault() != other.hasDefault()) return false; if (hasDefault()) { if (!getDefault() .equals(other.getDefault())) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + HELP_FIELD_NUMBER; hash = (53 * hash) + getHelp().hashCode(); if (hasEnvar()) { hash = (37 * hash) + ENVAR_FIELD_NUMBER; hash = (53 * hash) + getEnvar().hashCode(); } if (hasShort()) { hash = (37 * hash) + SHORT_FIELD_NUMBER; hash = (53 * hash) + getShort().hashCode(); } if (hasPlaceholder()) { hash = (37 * hash) + PLACEHOLDER_FIELD_NUMBER; hash = (53 * hash) + getPlaceholder().hashCode(); } if (hasDefault()) { hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag 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.language.GetCreateModuleFlagsResponse.Flag parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag 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.language.GetCreateModuleFlagsResponse.Flag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag 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.language.GetCreateModuleFlagsResponse.Flag parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag 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.language.GetCreateModuleFlagsResponse.Flag parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag 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.language.GetCreateModuleFlagsResponse.Flag 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.language.GetCreateModuleFlagsResponse.Flag} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag) xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.FlagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_Flag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_Flag_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.class, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder.class); } // Construct using xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; help_ = ""; envar_ = ""; short_ = ""; placeholder_ = ""; default_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_Flag_descriptor; } @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag getDefaultInstanceForType() { return xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag build() { xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag buildPartial() { xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag result = new xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.help_ = help_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.envar_ = envar_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.short_ = short_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.placeholder_ = placeholder_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.default_ = default_; to_bitField0_ |= 0x00000008; } 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.language.GetCreateModuleFlagsResponse.Flag) { return mergeFrom((xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag other) { if (other == xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getHelp().isEmpty()) { help_ = other.help_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasEnvar()) { envar_ = other.envar_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasShort()) { short_ = other.short_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasPlaceholder()) { placeholder_ = other.placeholder_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasDefault()) { default_ = other.default_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { help_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { envar_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { short_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { placeholder_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { default_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 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 name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object help_ = ""; /** * string help = 2; * @return The help. */ public java.lang.String getHelp() { java.lang.Object ref = help_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); help_ = s; return s; } else { return (java.lang.String) ref; } } /** * string help = 2; * @return The bytes for help. */ public com.google.protobuf.ByteString getHelpBytes() { java.lang.Object ref = help_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); help_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string help = 2; * @param value The help to set. * @return This builder for chaining. */ public Builder setHelp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } help_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string help = 2; * @return This builder for chaining. */ public Builder clearHelp() { help_ = getDefaultInstance().getHelp(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string help = 2; * @param value The bytes for help to set. * @return This builder for chaining. */ public Builder setHelpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); help_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object envar_ = ""; /** * optional string envar = 3; * @return Whether the envar field is set. */ public boolean hasEnvar() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string envar = 3; * @return The envar. */ public java.lang.String getEnvar() { java.lang.Object ref = envar_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); envar_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string envar = 3; * @return The bytes for envar. */ public com.google.protobuf.ByteString getEnvarBytes() { java.lang.Object ref = envar_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); envar_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string envar = 3; * @param value The envar to set. * @return This builder for chaining. */ public Builder setEnvar( java.lang.String value) { if (value == null) { throw new NullPointerException(); } envar_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional string envar = 3; * @return This builder for chaining. */ public Builder clearEnvar() { envar_ = getDefaultInstance().getEnvar(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * optional string envar = 3; * @param value The bytes for envar to set. * @return This builder for chaining. */ public Builder setEnvarBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); envar_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object short_ = ""; /** *
       * short must be a single character
       * 
* * optional string short = 4; * @return Whether the short field is set. */ public boolean hasShort() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * short must be a single character
       * 
* * optional string short = 4; * @return The short. */ public java.lang.String getShort() { java.lang.Object ref = short_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); short_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * short must be a single character
       * 
* * optional string short = 4; * @return The bytes for short. */ public com.google.protobuf.ByteString getShortBytes() { java.lang.Object ref = short_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); short_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * short must be a single character
       * 
* * optional string short = 4; * @param value The short to set. * @return This builder for chaining. */ public Builder setShort( java.lang.String value) { if (value == null) { throw new NullPointerException(); } short_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * short must be a single character
       * 
* * optional string short = 4; * @return This builder for chaining. */ public Builder clearShort() { short_ = getDefaultInstance().getShort(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * short must be a single character
       * 
* * optional string short = 4; * @param value The bytes for short to set. * @return This builder for chaining. */ public Builder setShortBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); short_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object placeholder_ = ""; /** * optional string placeholder = 5; * @return Whether the placeholder field is set. */ public boolean hasPlaceholder() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string placeholder = 5; * @return The placeholder. */ public java.lang.String getPlaceholder() { java.lang.Object ref = placeholder_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); placeholder_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string placeholder = 5; * @return The bytes for placeholder. */ public com.google.protobuf.ByteString getPlaceholderBytes() { java.lang.Object ref = placeholder_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); placeholder_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string placeholder = 5; * @param value The placeholder to set. * @return This builder for chaining. */ public Builder setPlaceholder( java.lang.String value) { if (value == null) { throw new NullPointerException(); } placeholder_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional string placeholder = 5; * @return This builder for chaining. */ public Builder clearPlaceholder() { placeholder_ = getDefaultInstance().getPlaceholder(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * optional string placeholder = 5; * @param value The bytes for placeholder to set. * @return This builder for chaining. */ public Builder setPlaceholderBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); placeholder_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object default_ = ""; /** * optional string default = 6; * @return Whether the default field is set. */ public boolean hasDefault() { return ((bitField0_ & 0x00000020) != 0); } /** * optional string default = 6; * @return The default. */ public java.lang.String getDefault() { java.lang.Object ref = default_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); default_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string default = 6; * @return The bytes for default. */ public com.google.protobuf.ByteString getDefaultBytes() { java.lang.Object ref = default_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); default_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string default = 6; * @param value The default to set. * @return This builder for chaining. */ public Builder setDefault( java.lang.String value) { if (value == null) { throw new NullPointerException(); } default_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional string default = 6; * @return This builder for chaining. */ public Builder clearDefault() { default_ = getDefaultInstance().getDefault(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * optional string default = 6; * @param value The bytes for default to set. * @return This builder for chaining. */ public Builder setDefaultBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); default_ = value; bitField0_ |= 0x00000020; 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.language.GetCreateModuleFlagsResponse.Flag) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag) private static final xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag(); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Flag 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.language.GetCreateModuleFlagsResponse.Flag getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FLAGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List flags_; /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ @java.lang.Override public java.util.List getFlagsList() { return flags_; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ @java.lang.Override public java.util.List getFlagsOrBuilderList() { return flags_; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ @java.lang.Override public int getFlagsCount() { return flags_.size(); } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag getFlags(int index) { return flags_.get(index); } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.FlagOrBuilder getFlagsOrBuilder( int index) { return flags_.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 { for (int i = 0; i < flags_.size(); i++) { output.writeMessage(1, flags_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < flags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, flags_.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 xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse)) { return super.equals(obj); } xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse other = (xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse) obj; if (!getFlagsList() .equals(other.getFlagsList())) 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 (getFlagsCount() > 0) { hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse) xyz.block.ftl.v1.language.GetCreateModuleFlagsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.class, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Builder.class); } // Construct using xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); } else { flags_ = null; flagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_GetCreateModuleFlagsResponse_descriptor; } @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse getDefaultInstanceForType() { return xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse build() { xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse buildPartial() { xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse result = new xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse result) { if (flagsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { flags_ = java.util.Collections.unmodifiableList(flags_); bitField0_ = (bitField0_ & ~0x00000001); } result.flags_ = flags_; } else { result.flags_ = flagsBuilder_.build(); } } private void buildPartial0(xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse result) { int from_bitField0_ = 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.language.GetCreateModuleFlagsResponse) { return mergeFrom((xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse other) { if (other == xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.getDefaultInstance()) return this; if (flagsBuilder_ == null) { if (!other.flags_.isEmpty()) { if (flags_.isEmpty()) { flags_ = other.flags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFlagsIsMutable(); flags_.addAll(other.flags_); } onChanged(); } } else { if (!other.flags_.isEmpty()) { if (flagsBuilder_.isEmpty()) { flagsBuilder_.dispose(); flagsBuilder_ = null; flags_ = other.flags_; bitField0_ = (bitField0_ & ~0x00000001); flagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFlagsFieldBuilder() : null; } else { flagsBuilder_.addAllMessages(other.flags_); } } } 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: { xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag m = input.readMessage( xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.parser(), extensionRegistry); if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(m); } else { flagsBuilder_.addMessage(m); } 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 java.util.List flags_ = java.util.Collections.emptyList(); private void ensureFlagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { flags_ = new java.util.ArrayList(flags_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.FlagOrBuilder> flagsBuilder_; /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public java.util.List getFlagsList() { if (flagsBuilder_ == null) { return java.util.Collections.unmodifiableList(flags_); } else { return flagsBuilder_.getMessageList(); } } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public int getFlagsCount() { if (flagsBuilder_ == null) { return flags_.size(); } else { return flagsBuilder_.getCount(); } } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag getFlags(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { return flagsBuilder_.getMessage(index); } } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder setFlags( int index, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.set(index, value); onChanged(); } else { flagsBuilder_.setMessage(index, value); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder setFlags( int index, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.set(index, builderForValue.build()); onChanged(); } else { flagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder addFlags(xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.add(value); onChanged(); } else { flagsBuilder_.addMessage(value); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder addFlags( int index, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.add(index, value); onChanged(); } else { flagsBuilder_.addMessage(index, value); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder addFlags( xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(builderForValue.build()); onChanged(); } else { flagsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder addFlags( int index, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(index, builderForValue.build()); onChanged(); } else { flagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder addAllFlags( java.lang.Iterable values) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, flags_); onChanged(); } else { flagsBuilder_.addAllMessages(values); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { flagsBuilder_.clear(); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public Builder removeFlags(int index) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.remove(index); onChanged(); } else { flagsBuilder_.remove(index); } return this; } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder getFlagsBuilder( int index) { return getFlagsFieldBuilder().getBuilder(index); } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.FlagOrBuilder getFlagsOrBuilder( int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { return flagsBuilder_.getMessageOrBuilder(index); } } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public java.util.List getFlagsOrBuilderList() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(flags_); } } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder addFlagsBuilder() { return getFlagsFieldBuilder().addBuilder( xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.getDefaultInstance()); } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder addFlagsBuilder( int index) { return getFlagsFieldBuilder().addBuilder( index, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.getDefaultInstance()); } /** * repeated .xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag flags = 1; */ public java.util.List getFlagsBuilderList() { return getFlagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.FlagOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.Flag.Builder, xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse.FlagOrBuilder>( flags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } @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.language.GetCreateModuleFlagsResponse) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse) private static final xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse(); } public static xyz.block.ftl.v1.language.GetCreateModuleFlagsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetCreateModuleFlagsResponse 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.language.GetCreateModuleFlagsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy