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

xyz.block.ftl.v1.language.BuildEvent 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;

/**
 * 
 * Every type of message that can be streamed from the language plugin for a build.
 * 
* * Protobuf type {@code xyz.block.ftl.v1.language.BuildEvent} */ public final class BuildEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.BuildEvent) BuildEventOrBuilder { private static final long serialVersionUID = 0L; // Use BuildEvent.newBuilder() to construct. private BuildEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BuildEvent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BuildEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildEvent_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_BuildEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.BuildEvent.class, xyz.block.ftl.v1.language.BuildEvent.Builder.class); } private int eventCase_ = 0; @SuppressWarnings("serial") private java.lang.Object event_; public enum EventCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AUTO_REBUILD_STARTED(2), BUILD_SUCCESS(3), BUILD_FAILURE(4), EVENT_NOT_SET(0); private final int value; private EventCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventCase valueOf(int value) { return forNumber(value); } public static EventCase forNumber(int value) { switch (value) { case 2: return AUTO_REBUILD_STARTED; case 3: return BUILD_SUCCESS; case 4: return BUILD_FAILURE; case 0: return EVENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public static final int AUTO_REBUILD_STARTED_FIELD_NUMBER = 2; /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; * @return Whether the autoRebuildStarted field is set. */ @java.lang.Override public boolean hasAutoRebuildStarted() { return eventCase_ == 2; } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; * @return The autoRebuildStarted. */ @java.lang.Override public xyz.block.ftl.v1.language.AutoRebuildStarted getAutoRebuildStarted() { if (eventCase_ == 2) { return (xyz.block.ftl.v1.language.AutoRebuildStarted) event_; } return xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance(); } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ @java.lang.Override public xyz.block.ftl.v1.language.AutoRebuildStartedOrBuilder getAutoRebuildStartedOrBuilder() { if (eventCase_ == 2) { return (xyz.block.ftl.v1.language.AutoRebuildStarted) event_; } return xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance(); } public static final int BUILD_SUCCESS_FIELD_NUMBER = 3; /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; * @return Whether the buildSuccess field is set. */ @java.lang.Override public boolean hasBuildSuccess() { return eventCase_ == 3; } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; * @return The buildSuccess. */ @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccess getBuildSuccess() { if (eventCase_ == 3) { return (xyz.block.ftl.v1.language.BuildSuccess) event_; } return xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccessOrBuilder getBuildSuccessOrBuilder() { if (eventCase_ == 3) { return (xyz.block.ftl.v1.language.BuildSuccess) event_; } return xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } public static final int BUILD_FAILURE_FIELD_NUMBER = 4; /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; * @return Whether the buildFailure field is set. */ @java.lang.Override public boolean hasBuildFailure() { return eventCase_ == 4; } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; * @return The buildFailure. */ @java.lang.Override public xyz.block.ftl.v1.language.BuildFailure getBuildFailure() { if (eventCase_ == 4) { return (xyz.block.ftl.v1.language.BuildFailure) event_; } return xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance(); } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ @java.lang.Override public xyz.block.ftl.v1.language.BuildFailureOrBuilder getBuildFailureOrBuilder() { if (eventCase_ == 4) { return (xyz.block.ftl.v1.language.BuildFailure) event_; } return xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance(); } 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 (eventCase_ == 2) { output.writeMessage(2, (xyz.block.ftl.v1.language.AutoRebuildStarted) event_); } if (eventCase_ == 3) { output.writeMessage(3, (xyz.block.ftl.v1.language.BuildSuccess) event_); } if (eventCase_ == 4) { output.writeMessage(4, (xyz.block.ftl.v1.language.BuildFailure) event_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (xyz.block.ftl.v1.language.AutoRebuildStarted) event_); } if (eventCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (xyz.block.ftl.v1.language.BuildSuccess) event_); } if (eventCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (xyz.block.ftl.v1.language.BuildFailure) event_); } 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.BuildEvent)) { return super.equals(obj); } xyz.block.ftl.v1.language.BuildEvent other = (xyz.block.ftl.v1.language.BuildEvent) obj; if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: if (!getAutoRebuildStarted() .equals(other.getAutoRebuildStarted())) return false; break; case 3: if (!getBuildSuccess() .equals(other.getBuildSuccess())) return false; break; case 4: if (!getBuildFailure() .equals(other.getBuildFailure())) return false; break; case 0: default: } 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(); switch (eventCase_) { case 2: hash = (37 * hash) + AUTO_REBUILD_STARTED_FIELD_NUMBER; hash = (53 * hash) + getAutoRebuildStarted().hashCode(); break; case 3: hash = (37 * hash) + BUILD_SUCCESS_FIELD_NUMBER; hash = (53 * hash) + getBuildSuccess().hashCode(); break; case 4: hash = (37 * hash) + BUILD_FAILURE_FIELD_NUMBER; hash = (53 * hash) + getBuildFailure().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.language.BuildEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildEvent 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.BuildEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildEvent 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.BuildEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildEvent 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.BuildEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildEvent 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.BuildEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildEvent 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.BuildEvent 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.BuildEvent 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.BuildEvent 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; } /** *
   * Every type of message that can be streamed from the language plugin for a build.
   * 
* * Protobuf type {@code xyz.block.ftl.v1.language.BuildEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.BuildEvent) xyz.block.ftl.v1.language.BuildEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildEvent_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_BuildEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.BuildEvent.class, xyz.block.ftl.v1.language.BuildEvent.Builder.class); } // Construct using xyz.block.ftl.v1.language.BuildEvent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (autoRebuildStartedBuilder_ != null) { autoRebuildStartedBuilder_.clear(); } if (buildSuccessBuilder_ != null) { buildSuccessBuilder_.clear(); } if (buildFailureBuilder_ != null) { buildFailureBuilder_.clear(); } eventCase_ = 0; event_ = null; 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_BuildEvent_descriptor; } @java.lang.Override public xyz.block.ftl.v1.language.BuildEvent getDefaultInstanceForType() { return xyz.block.ftl.v1.language.BuildEvent.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.language.BuildEvent build() { xyz.block.ftl.v1.language.BuildEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.language.BuildEvent buildPartial() { xyz.block.ftl.v1.language.BuildEvent result = new xyz.block.ftl.v1.language.BuildEvent(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(xyz.block.ftl.v1.language.BuildEvent result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(xyz.block.ftl.v1.language.BuildEvent result) { result.eventCase_ = eventCase_; result.event_ = this.event_; if (eventCase_ == 2 && autoRebuildStartedBuilder_ != null) { result.event_ = autoRebuildStartedBuilder_.build(); } if (eventCase_ == 3 && buildSuccessBuilder_ != null) { result.event_ = buildSuccessBuilder_.build(); } if (eventCase_ == 4 && buildFailureBuilder_ != null) { result.event_ = buildFailureBuilder_.build(); } } @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.BuildEvent) { return mergeFrom((xyz.block.ftl.v1.language.BuildEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.language.BuildEvent other) { if (other == xyz.block.ftl.v1.language.BuildEvent.getDefaultInstance()) return this; switch (other.getEventCase()) { case AUTO_REBUILD_STARTED: { mergeAutoRebuildStarted(other.getAutoRebuildStarted()); break; } case BUILD_SUCCESS: { mergeBuildSuccess(other.getBuildSuccess()); break; } case BUILD_FAILURE: { mergeBuildFailure(other.getBuildFailure()); break; } case EVENT_NOT_SET: { break; } } 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 18: { input.readMessage( getAutoRebuildStartedFieldBuilder().getBuilder(), extensionRegistry); eventCase_ = 2; break; } // case 18 case 26: { input.readMessage( getBuildSuccessFieldBuilder().getBuilder(), extensionRegistry); eventCase_ = 3; break; } // case 26 case 34: { input.readMessage( getBuildFailureFieldBuilder().getBuilder(), extensionRegistry); eventCase_ = 4; break; } // case 34 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 eventCase_ = 0; private java.lang.Object event_; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public Builder clearEvent() { eventCase_ = 0; event_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.AutoRebuildStarted, xyz.block.ftl.v1.language.AutoRebuildStarted.Builder, xyz.block.ftl.v1.language.AutoRebuildStartedOrBuilder> autoRebuildStartedBuilder_; /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; * @return Whether the autoRebuildStarted field is set. */ @java.lang.Override public boolean hasAutoRebuildStarted() { return eventCase_ == 2; } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; * @return The autoRebuildStarted. */ @java.lang.Override public xyz.block.ftl.v1.language.AutoRebuildStarted getAutoRebuildStarted() { if (autoRebuildStartedBuilder_ == null) { if (eventCase_ == 2) { return (xyz.block.ftl.v1.language.AutoRebuildStarted) event_; } return xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance(); } else { if (eventCase_ == 2) { return autoRebuildStartedBuilder_.getMessage(); } return xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance(); } } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ public Builder setAutoRebuildStarted(xyz.block.ftl.v1.language.AutoRebuildStarted value) { if (autoRebuildStartedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { autoRebuildStartedBuilder_.setMessage(value); } eventCase_ = 2; return this; } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ public Builder setAutoRebuildStarted( xyz.block.ftl.v1.language.AutoRebuildStarted.Builder builderForValue) { if (autoRebuildStartedBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { autoRebuildStartedBuilder_.setMessage(builderForValue.build()); } eventCase_ = 2; return this; } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ public Builder mergeAutoRebuildStarted(xyz.block.ftl.v1.language.AutoRebuildStarted value) { if (autoRebuildStartedBuilder_ == null) { if (eventCase_ == 2 && event_ != xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance()) { event_ = xyz.block.ftl.v1.language.AutoRebuildStarted.newBuilder((xyz.block.ftl.v1.language.AutoRebuildStarted) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 2) { autoRebuildStartedBuilder_.mergeFrom(value); } else { autoRebuildStartedBuilder_.setMessage(value); } } eventCase_ = 2; return this; } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ public Builder clearAutoRebuildStarted() { if (autoRebuildStartedBuilder_ == null) { if (eventCase_ == 2) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 2) { eventCase_ = 0; event_ = null; } autoRebuildStartedBuilder_.clear(); } return this; } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ public xyz.block.ftl.v1.language.AutoRebuildStarted.Builder getAutoRebuildStartedBuilder() { return getAutoRebuildStartedFieldBuilder().getBuilder(); } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ @java.lang.Override public xyz.block.ftl.v1.language.AutoRebuildStartedOrBuilder getAutoRebuildStartedOrBuilder() { if ((eventCase_ == 2) && (autoRebuildStartedBuilder_ != null)) { return autoRebuildStartedBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 2) { return (xyz.block.ftl.v1.language.AutoRebuildStarted) event_; } return xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance(); } } /** * .xyz.block.ftl.v1.language.AutoRebuildStarted auto_rebuild_started = 2; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.AutoRebuildStarted, xyz.block.ftl.v1.language.AutoRebuildStarted.Builder, xyz.block.ftl.v1.language.AutoRebuildStartedOrBuilder> getAutoRebuildStartedFieldBuilder() { if (autoRebuildStartedBuilder_ == null) { if (!(eventCase_ == 2)) { event_ = xyz.block.ftl.v1.language.AutoRebuildStarted.getDefaultInstance(); } autoRebuildStartedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.AutoRebuildStarted, xyz.block.ftl.v1.language.AutoRebuildStarted.Builder, xyz.block.ftl.v1.language.AutoRebuildStartedOrBuilder>( (xyz.block.ftl.v1.language.AutoRebuildStarted) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 2; onChanged(); return autoRebuildStartedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.BuildSuccess, xyz.block.ftl.v1.language.BuildSuccess.Builder, xyz.block.ftl.v1.language.BuildSuccessOrBuilder> buildSuccessBuilder_; /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; * @return Whether the buildSuccess field is set. */ @java.lang.Override public boolean hasBuildSuccess() { return eventCase_ == 3; } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; * @return The buildSuccess. */ @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccess getBuildSuccess() { if (buildSuccessBuilder_ == null) { if (eventCase_ == 3) { return (xyz.block.ftl.v1.language.BuildSuccess) event_; } return xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } else { if (eventCase_ == 3) { return buildSuccessBuilder_.getMessage(); } return xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ public Builder setBuildSuccess(xyz.block.ftl.v1.language.BuildSuccess value) { if (buildSuccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { buildSuccessBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ public Builder setBuildSuccess( xyz.block.ftl.v1.language.BuildSuccess.Builder builderForValue) { if (buildSuccessBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { buildSuccessBuilder_.setMessage(builderForValue.build()); } eventCase_ = 3; return this; } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ public Builder mergeBuildSuccess(xyz.block.ftl.v1.language.BuildSuccess value) { if (buildSuccessBuilder_ == null) { if (eventCase_ == 3 && event_ != xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance()) { event_ = xyz.block.ftl.v1.language.BuildSuccess.newBuilder((xyz.block.ftl.v1.language.BuildSuccess) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 3) { buildSuccessBuilder_.mergeFrom(value); } else { buildSuccessBuilder_.setMessage(value); } } eventCase_ = 3; return this; } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ public Builder clearBuildSuccess() { if (buildSuccessBuilder_ == null) { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; } buildSuccessBuilder_.clear(); } return this; } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ public xyz.block.ftl.v1.language.BuildSuccess.Builder getBuildSuccessBuilder() { return getBuildSuccessFieldBuilder().getBuilder(); } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccessOrBuilder getBuildSuccessOrBuilder() { if ((eventCase_ == 3) && (buildSuccessBuilder_ != null)) { return buildSuccessBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 3) { return (xyz.block.ftl.v1.language.BuildSuccess) event_; } return xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } } /** * .xyz.block.ftl.v1.language.BuildSuccess build_success = 3; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.BuildSuccess, xyz.block.ftl.v1.language.BuildSuccess.Builder, xyz.block.ftl.v1.language.BuildSuccessOrBuilder> getBuildSuccessFieldBuilder() { if (buildSuccessBuilder_ == null) { if (!(eventCase_ == 3)) { event_ = xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } buildSuccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.BuildSuccess, xyz.block.ftl.v1.language.BuildSuccess.Builder, xyz.block.ftl.v1.language.BuildSuccessOrBuilder>( (xyz.block.ftl.v1.language.BuildSuccess) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 3; onChanged(); return buildSuccessBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.BuildFailure, xyz.block.ftl.v1.language.BuildFailure.Builder, xyz.block.ftl.v1.language.BuildFailureOrBuilder> buildFailureBuilder_; /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; * @return Whether the buildFailure field is set. */ @java.lang.Override public boolean hasBuildFailure() { return eventCase_ == 4; } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; * @return The buildFailure. */ @java.lang.Override public xyz.block.ftl.v1.language.BuildFailure getBuildFailure() { if (buildFailureBuilder_ == null) { if (eventCase_ == 4) { return (xyz.block.ftl.v1.language.BuildFailure) event_; } return xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance(); } else { if (eventCase_ == 4) { return buildFailureBuilder_.getMessage(); } return xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance(); } } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ public Builder setBuildFailure(xyz.block.ftl.v1.language.BuildFailure value) { if (buildFailureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { buildFailureBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ public Builder setBuildFailure( xyz.block.ftl.v1.language.BuildFailure.Builder builderForValue) { if (buildFailureBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { buildFailureBuilder_.setMessage(builderForValue.build()); } eventCase_ = 4; return this; } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ public Builder mergeBuildFailure(xyz.block.ftl.v1.language.BuildFailure value) { if (buildFailureBuilder_ == null) { if (eventCase_ == 4 && event_ != xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance()) { event_ = xyz.block.ftl.v1.language.BuildFailure.newBuilder((xyz.block.ftl.v1.language.BuildFailure) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 4) { buildFailureBuilder_.mergeFrom(value); } else { buildFailureBuilder_.setMessage(value); } } eventCase_ = 4; return this; } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ public Builder clearBuildFailure() { if (buildFailureBuilder_ == null) { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; } buildFailureBuilder_.clear(); } return this; } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ public xyz.block.ftl.v1.language.BuildFailure.Builder getBuildFailureBuilder() { return getBuildFailureFieldBuilder().getBuilder(); } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ @java.lang.Override public xyz.block.ftl.v1.language.BuildFailureOrBuilder getBuildFailureOrBuilder() { if ((eventCase_ == 4) && (buildFailureBuilder_ != null)) { return buildFailureBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 4) { return (xyz.block.ftl.v1.language.BuildFailure) event_; } return xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance(); } } /** * .xyz.block.ftl.v1.language.BuildFailure build_failure = 4; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.BuildFailure, xyz.block.ftl.v1.language.BuildFailure.Builder, xyz.block.ftl.v1.language.BuildFailureOrBuilder> getBuildFailureFieldBuilder() { if (buildFailureBuilder_ == null) { if (!(eventCase_ == 4)) { event_ = xyz.block.ftl.v1.language.BuildFailure.getDefaultInstance(); } buildFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.BuildFailure, xyz.block.ftl.v1.language.BuildFailure.Builder, xyz.block.ftl.v1.language.BuildFailureOrBuilder>( (xyz.block.ftl.v1.language.BuildFailure) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 4; onChanged(); return buildFailureBuilder_; } @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.BuildEvent) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.BuildEvent) private static final xyz.block.ftl.v1.language.BuildEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.BuildEvent(); } public static xyz.block.ftl.v1.language.BuildEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BuildEvent 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.BuildEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy