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

build.bazel.remote.execution.v2.LogFile Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: build/bazel/remote/execution/v2/remote_execution.proto

// Protobuf Java Version: 3.25.3
package build.bazel.remote.execution.v2;

/**
 * 
 * A `LogFile` is a log stored in the CAS.
 * 
* * Protobuf type {@code build.bazel.remote.execution.v2.LogFile} */ public final class LogFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.LogFile) LogFileOrBuilder { private static final long serialVersionUID = 0L; // Use LogFile.newBuilder() to construct. private LogFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LogFile() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LogFile(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_LogFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_LogFile_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.LogFile.class, build.bazel.remote.execution.v2.LogFile.Builder.class); } private int bitField0_; public static final int DIGEST_FIELD_NUMBER = 1; private build.bazel.remote.execution.v2.Digest digest_; /** *
   * The digest of the log contents.
   * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return Whether the digest field is set. */ @java.lang.Override public boolean hasDigest() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The digest of the log contents.
   * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return The digest. */ @java.lang.Override public build.bazel.remote.execution.v2.Digest getDigest() { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } /** *
   * The digest of the log contents.
   * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ @java.lang.Override public build.bazel.remote.execution.v2.DigestOrBuilder getDigestOrBuilder() { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } public static final int HUMAN_READABLE_FIELD_NUMBER = 2; private boolean humanReadable_ = false; /** *
   * This is a hint as to the purpose of the log, and is set to true if the log
   * is human-readable text that can be usefully displayed to a user, and false
   * otherwise. For instance, if a command-line client wishes to print the
   * server logs to the terminal for a failed action, this allows it to avoid
   * displaying a binary file.
   * 
* * bool human_readable = 2; * @return The humanReadable. */ @java.lang.Override public boolean getHumanReadable() { return humanReadable_; } 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, getDigest()); } if (humanReadable_ != false) { output.writeBool(2, humanReadable_); } 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, getDigest()); } if (humanReadable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, humanReadable_); } 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 build.bazel.remote.execution.v2.LogFile)) { return super.equals(obj); } build.bazel.remote.execution.v2.LogFile other = (build.bazel.remote.execution.v2.LogFile) obj; if (hasDigest() != other.hasDigest()) return false; if (hasDigest()) { if (!getDigest() .equals(other.getDigest())) return false; } if (getHumanReadable() != other.getHumanReadable()) 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 (hasDigest()) { hash = (37 * hash) + DIGEST_FIELD_NUMBER; hash = (53 * hash) + getDigest().hashCode(); } hash = (37 * hash) + HUMAN_READABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHumanReadable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static build.bazel.remote.execution.v2.LogFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.LogFile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.LogFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.LogFile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.LogFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static build.bazel.remote.execution.v2.LogFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static build.bazel.remote.execution.v2.LogFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.LogFile 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 build.bazel.remote.execution.v2.LogFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.LogFile 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 build.bazel.remote.execution.v2.LogFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static build.bazel.remote.execution.v2.LogFile 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(build.bazel.remote.execution.v2.LogFile 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; } /** *
   * A `LogFile` is a log stored in the CAS.
   * 
* * Protobuf type {@code build.bazel.remote.execution.v2.LogFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.LogFile) build.bazel.remote.execution.v2.LogFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_LogFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_LogFile_fieldAccessorTable .ensureFieldAccessorsInitialized( build.bazel.remote.execution.v2.LogFile.class, build.bazel.remote.execution.v2.LogFile.Builder.class); } // Construct using build.bazel.remote.execution.v2.LogFile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDigestFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; digest_ = null; if (digestBuilder_ != null) { digestBuilder_.dispose(); digestBuilder_ = null; } humanReadable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_LogFile_descriptor; } @java.lang.Override public build.bazel.remote.execution.v2.LogFile getDefaultInstanceForType() { return build.bazel.remote.execution.v2.LogFile.getDefaultInstance(); } @java.lang.Override public build.bazel.remote.execution.v2.LogFile build() { build.bazel.remote.execution.v2.LogFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public build.bazel.remote.execution.v2.LogFile buildPartial() { build.bazel.remote.execution.v2.LogFile result = new build.bazel.remote.execution.v2.LogFile(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(build.bazel.remote.execution.v2.LogFile result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.digest_ = digestBuilder_ == null ? digest_ : digestBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.humanReadable_ = humanReadable_; } 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 build.bazel.remote.execution.v2.LogFile) { return mergeFrom((build.bazel.remote.execution.v2.LogFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(build.bazel.remote.execution.v2.LogFile other) { if (other == build.bazel.remote.execution.v2.LogFile.getDefaultInstance()) return this; if (other.hasDigest()) { mergeDigest(other.getDigest()); } if (other.getHumanReadable() != false) { setHumanReadable(other.getHumanReadable()); } 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( getDigestFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { humanReadable_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 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 build.bazel.remote.execution.v2.Digest digest_; private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> digestBuilder_; /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return Whether the digest field is set. */ public boolean hasDigest() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; * @return The digest. */ public build.bazel.remote.execution.v2.Digest getDigest() { if (digestBuilder_ == null) { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } else { return digestBuilder_.getMessage(); } } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder setDigest(build.bazel.remote.execution.v2.Digest value) { if (digestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } digest_ = value; } else { digestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder setDigest( build.bazel.remote.execution.v2.Digest.Builder builderForValue) { if (digestBuilder_ == null) { digest_ = builderForValue.build(); } else { digestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder mergeDigest(build.bazel.remote.execution.v2.Digest value) { if (digestBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && digest_ != null && digest_ != build.bazel.remote.execution.v2.Digest.getDefaultInstance()) { getDigestBuilder().mergeFrom(value); } else { digest_ = value; } } else { digestBuilder_.mergeFrom(value); } if (digest_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public Builder clearDigest() { bitField0_ = (bitField0_ & ~0x00000001); digest_ = null; if (digestBuilder_ != null) { digestBuilder_.dispose(); digestBuilder_ = null; } onChanged(); return this; } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public build.bazel.remote.execution.v2.Digest.Builder getDigestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDigestFieldBuilder().getBuilder(); } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ public build.bazel.remote.execution.v2.DigestOrBuilder getDigestOrBuilder() { if (digestBuilder_ != null) { return digestBuilder_.getMessageOrBuilder(); } else { return digest_ == null ? build.bazel.remote.execution.v2.Digest.getDefaultInstance() : digest_; } } /** *
     * The digest of the log contents.
     * 
* * .build.bazel.remote.execution.v2.Digest digest = 1; */ private com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder> getDigestFieldBuilder() { if (digestBuilder_ == null) { digestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< build.bazel.remote.execution.v2.Digest, build.bazel.remote.execution.v2.Digest.Builder, build.bazel.remote.execution.v2.DigestOrBuilder>( getDigest(), getParentForChildren(), isClean()); digest_ = null; } return digestBuilder_; } private boolean humanReadable_ ; /** *
     * This is a hint as to the purpose of the log, and is set to true if the log
     * is human-readable text that can be usefully displayed to a user, and false
     * otherwise. For instance, if a command-line client wishes to print the
     * server logs to the terminal for a failed action, this allows it to avoid
     * displaying a binary file.
     * 
* * bool human_readable = 2; * @return The humanReadable. */ @java.lang.Override public boolean getHumanReadable() { return humanReadable_; } /** *
     * This is a hint as to the purpose of the log, and is set to true if the log
     * is human-readable text that can be usefully displayed to a user, and false
     * otherwise. For instance, if a command-line client wishes to print the
     * server logs to the terminal for a failed action, this allows it to avoid
     * displaying a binary file.
     * 
* * bool human_readable = 2; * @param value The humanReadable to set. * @return This builder for chaining. */ public Builder setHumanReadable(boolean value) { humanReadable_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * This is a hint as to the purpose of the log, and is set to true if the log
     * is human-readable text that can be usefully displayed to a user, and false
     * otherwise. For instance, if a command-line client wishes to print the
     * server logs to the terminal for a failed action, this allows it to avoid
     * displaying a binary file.
     * 
* * bool human_readable = 2; * @return This builder for chaining. */ public Builder clearHumanReadable() { bitField0_ = (bitField0_ & ~0x00000002); humanReadable_ = false; 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:build.bazel.remote.execution.v2.LogFile) } // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.LogFile) private static final build.bazel.remote.execution.v2.LogFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.LogFile(); } public static build.bazel.remote.execution.v2.LogFile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogFile 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 build.bazel.remote.execution.v2.LogFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy