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

xyz.block.ftl.v1.schema.ModuleRuntime Maven / Gradle / Ivy

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

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

/**
 * Protobuf type {@code xyz.block.ftl.v1.schema.ModuleRuntime}
 */
public final class ModuleRuntime extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.schema.ModuleRuntime)
    ModuleRuntimeOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ModuleRuntime.newBuilder() to construct.
  private ModuleRuntime(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ModuleRuntime() {
    language_ = "";
    os_ = "";
    arch_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return xyz.block.ftl.v1.schema.Runtime.internal_static_xyz_block_ftl_v1_schema_ModuleRuntime_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return xyz.block.ftl.v1.schema.Runtime.internal_static_xyz_block_ftl_v1_schema_ModuleRuntime_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            xyz.block.ftl.v1.schema.ModuleRuntime.class, xyz.block.ftl.v1.schema.ModuleRuntime.Builder.class);
  }

  private int bitField0_;
  public static final int CREATE_TIME_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp createTime_;
  /**
   * .google.protobuf.Timestamp create_time = 1;
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .google.protobuf.Timestamp create_time = 1;
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   * .google.protobuf.Timestamp create_time = 1;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int LANGUAGE_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object language_ = "";
  /**
   * string language = 2;
   * @return The language.
   */
  @java.lang.Override
  public java.lang.String getLanguage() {
    java.lang.Object ref = language_;
    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();
      language_ = s;
      return s;
    }
  }
  /**
   * string language = 2;
   * @return The bytes for language.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLanguageBytes() {
    java.lang.Object ref = language_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      language_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MIN_REPLICAS_FIELD_NUMBER = 3;
  private int minReplicas_ = 0;
  /**
   * int32 min_replicas = 3;
   * @return The minReplicas.
   */
  @java.lang.Override
  public int getMinReplicas() {
    return minReplicas_;
  }

  public static final int OS_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object os_ = "";
  /**
   * 
   * OS the module was built for. If empty, the module is OS-agnostic.
   * 
* * optional string os = 4; * @return Whether the os field is set. */ @java.lang.Override public boolean hasOs() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * OS the module was built for. If empty, the module is OS-agnostic.
   * 
* * optional string os = 4; * @return The os. */ @java.lang.Override public java.lang.String getOs() { java.lang.Object ref = os_; 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(); os_ = s; return s; } } /** *
   * OS the module was built for. If empty, the module is OS-agnostic.
   * 
* * optional string os = 4; * @return The bytes for os. */ @java.lang.Override public com.google.protobuf.ByteString getOsBytes() { java.lang.Object ref = os_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); os_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARCH_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object arch_ = ""; /** *
   * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
   * 
* * optional string arch = 5; * @return Whether the arch field is set. */ @java.lang.Override public boolean hasArch() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
   * 
* * optional string arch = 5; * @return The arch. */ @java.lang.Override public java.lang.String getArch() { java.lang.Object ref = arch_; 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(); arch_ = s; return s; } } /** *
   * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
   * 
* * optional string arch = 5; * @return The bytes for arch. */ @java.lang.Override public com.google.protobuf.ByteString getArchBytes() { java.lang.Object ref = arch_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); arch_ = 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, language_); } if (minReplicas_ != 0) { output.writeInt32(3, minReplicas_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, os_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, arch_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(language_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, language_); } if (minReplicas_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, minReplicas_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, os_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, arch_); } 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.schema.ModuleRuntime)) { return super.equals(obj); } xyz.block.ftl.v1.schema.ModuleRuntime other = (xyz.block.ftl.v1.schema.ModuleRuntime) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime() .equals(other.getCreateTime())) return false; } if (!getLanguage() .equals(other.getLanguage())) return false; if (getMinReplicas() != other.getMinReplicas()) return false; if (hasOs() != other.hasOs()) return false; if (hasOs()) { if (!getOs() .equals(other.getOs())) return false; } if (hasArch() != other.hasArch()) return false; if (hasArch()) { if (!getArch() .equals(other.getArch())) 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 (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMinReplicas(); if (hasOs()) { hash = (37 * hash) + OS_FIELD_NUMBER; hash = (53 * hash) + getOs().hashCode(); } if (hasArch()) { hash = (37 * hash) + ARCH_FIELD_NUMBER; hash = (53 * hash) + getArch().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.schema.ModuleRuntime parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.schema.ModuleRuntime 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.schema.ModuleRuntime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.schema.ModuleRuntime 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.schema.ModuleRuntime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.schema.ModuleRuntime parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xyz.block.ftl.v1.schema.ModuleRuntime parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.schema.ModuleRuntime 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.schema.ModuleRuntime parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.schema.ModuleRuntime 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.schema.ModuleRuntime parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.schema.ModuleRuntime 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.schema.ModuleRuntime 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.schema.ModuleRuntime} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.schema.ModuleRuntime) xyz.block.ftl.v1.schema.ModuleRuntimeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.schema.Runtime.internal_static_xyz_block_ftl_v1_schema_ModuleRuntime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xyz.block.ftl.v1.schema.Runtime.internal_static_xyz_block_ftl_v1_schema_ModuleRuntime_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.schema.ModuleRuntime.class, xyz.block.ftl.v1.schema.ModuleRuntime.Builder.class); } // Construct using xyz.block.ftl.v1.schema.ModuleRuntime.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } language_ = ""; minReplicas_ = 0; os_ = ""; arch_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xyz.block.ftl.v1.schema.Runtime.internal_static_xyz_block_ftl_v1_schema_ModuleRuntime_descriptor; } @java.lang.Override public xyz.block.ftl.v1.schema.ModuleRuntime getDefaultInstanceForType() { return xyz.block.ftl.v1.schema.ModuleRuntime.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.schema.ModuleRuntime build() { xyz.block.ftl.v1.schema.ModuleRuntime result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.schema.ModuleRuntime buildPartial() { xyz.block.ftl.v1.schema.ModuleRuntime result = new xyz.block.ftl.v1.schema.ModuleRuntime(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(xyz.block.ftl.v1.schema.ModuleRuntime result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.language_ = language_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.minReplicas_ = minReplicas_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.os_ = os_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.arch_ = arch_; 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.schema.ModuleRuntime) { return mergeFrom((xyz.block.ftl.v1.schema.ModuleRuntime)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.schema.ModuleRuntime other) { if (other == xyz.block.ftl.v1.schema.ModuleRuntime.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (!other.getLanguage().isEmpty()) { language_ = other.language_; bitField0_ |= 0x00000002; onChanged(); } if (other.getMinReplicas() != 0) { setMinReplicas(other.getMinReplicas()); } if (other.hasOs()) { os_ = other.os_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasArch()) { arch_ = other.arch_; bitField0_ |= 0x00000010; 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: { input.readMessage( getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { language_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { minReplicas_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { os_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { arch_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 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 com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * .google.protobuf.Timestamp create_time = 1; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * .google.protobuf.Timestamp create_time = 1; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp create_time = 1; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp create_time = 1; */ public Builder setCreateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp create_time = 1; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .google.protobuf.Timestamp create_time = 1; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private java.lang.Object language_ = ""; /** * string language = 2; * @return The language. */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); language_ = s; return s; } else { return (java.lang.String) ref; } } /** * string language = 2; * @return The bytes for language. */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string language = 2; * @param value The language to set. * @return This builder for chaining. */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } language_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string language = 2; * @return This builder for chaining. */ public Builder clearLanguage() { language_ = getDefaultInstance().getLanguage(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string language = 2; * @param value The bytes for language to set. * @return This builder for chaining. */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); language_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int minReplicas_ ; /** * int32 min_replicas = 3; * @return The minReplicas. */ @java.lang.Override public int getMinReplicas() { return minReplicas_; } /** * int32 min_replicas = 3; * @param value The minReplicas to set. * @return This builder for chaining. */ public Builder setMinReplicas(int value) { minReplicas_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 min_replicas = 3; * @return This builder for chaining. */ public Builder clearMinReplicas() { bitField0_ = (bitField0_ & ~0x00000004); minReplicas_ = 0; onChanged(); return this; } private java.lang.Object os_ = ""; /** *
     * OS the module was built for. If empty, the module is OS-agnostic.
     * 
* * optional string os = 4; * @return Whether the os field is set. */ public boolean hasOs() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * OS the module was built for. If empty, the module is OS-agnostic.
     * 
* * optional string os = 4; * @return The os. */ public java.lang.String getOs() { java.lang.Object ref = os_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); os_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * OS the module was built for. If empty, the module is OS-agnostic.
     * 
* * optional string os = 4; * @return The bytes for os. */ public com.google.protobuf.ByteString getOsBytes() { java.lang.Object ref = os_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); os_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * OS the module was built for. If empty, the module is OS-agnostic.
     * 
* * optional string os = 4; * @param value The os to set. * @return This builder for chaining. */ public Builder setOs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } os_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * OS the module was built for. If empty, the module is OS-agnostic.
     * 
* * optional string os = 4; * @return This builder for chaining. */ public Builder clearOs() { os_ = getDefaultInstance().getOs(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * OS the module was built for. If empty, the module is OS-agnostic.
     * 
* * optional string os = 4; * @param value The bytes for os to set. * @return This builder for chaining. */ public Builder setOsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); os_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object arch_ = ""; /** *
     * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
     * 
* * optional string arch = 5; * @return Whether the arch field is set. */ public boolean hasArch() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
     * 
* * optional string arch = 5; * @return The arch. */ public java.lang.String getArch() { java.lang.Object ref = arch_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); arch_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
     * 
* * optional string arch = 5; * @return The bytes for arch. */ public com.google.protobuf.ByteString getArchBytes() { java.lang.Object ref = arch_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); arch_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
     * 
* * optional string arch = 5; * @param value The arch to set. * @return This builder for chaining. */ public Builder setArch( java.lang.String value) { if (value == null) { throw new NullPointerException(); } arch_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
     * 
* * optional string arch = 5; * @return This builder for chaining. */ public Builder clearArch() { arch_ = getDefaultInstance().getArch(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * CPU architecture the module was built for. If empty, the module is CPU-agnostic.
     * 
* * optional string arch = 5; * @param value The bytes for arch to set. * @return This builder for chaining. */ public Builder setArchBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); arch_ = value; bitField0_ |= 0x00000010; 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.schema.ModuleRuntime) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.schema.ModuleRuntime) private static final xyz.block.ftl.v1.schema.ModuleRuntime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.schema.ModuleRuntime(); } public static xyz.block.ftl.v1.schema.ModuleRuntime getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModuleRuntime 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.schema.ModuleRuntime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy