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

com.zepben.protobuf.hc.opendss.EventLogEntry Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: zepben/protobuf/hc/opendss/Diagnostics.proto

package com.zepben.protobuf.hc.opendss;

/**
 * 
 **
 * Message for a single Event Log Entry
 * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.EventLogEntry} */ public final class EventLogEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.EventLogEntry) EventLogEntryOrBuilder { private static final long serialVersionUID = 0L; // Use EventLogEntry.newBuilder() to construct. private EventLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventLogEntry() { element_ = ""; action_ = ""; event_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EventLogEntry(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_EventLogEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_EventLogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.EventLogEntry.class, com.zepben.protobuf.hc.opendss.EventLogEntry.Builder.class); } public static final int HOUR_FIELD_NUMBER = 1; private int hour_ = 0; /** * int32 hour = 1; * @return The hour. */ @java.lang.Override public int getHour() { return hour_; } public static final int SEC_FIELD_NUMBER = 2; private double sec_ = 0D; /** * double sec = 2; * @return The sec. */ @java.lang.Override public double getSec() { return sec_; } public static final int CONTROLITER_FIELD_NUMBER = 3; private int controlIter_ = 0; /** * int32 controlIter = 3; * @return The controlIter. */ @java.lang.Override public int getControlIter() { return controlIter_; } public static final int ITERATION_FIELD_NUMBER = 4; private int iteration_ = 0; /** * int32 iteration = 4; * @return The iteration. */ @java.lang.Override public int getIteration() { return iteration_; } public static final int ELEMENT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object element_ = ""; /** * string element = 5; * @return The element. */ @java.lang.Override public java.lang.String getElement() { java.lang.Object ref = element_; 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(); element_ = s; return s; } } /** * string element = 5; * @return The bytes for element. */ @java.lang.Override public com.google.protobuf.ByteString getElementBytes() { java.lang.Object ref = element_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); element_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACTION_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object action_ = ""; /** * string action = 6; * @return The action. */ @java.lang.Override public java.lang.String getAction() { java.lang.Object ref = action_; 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(); action_ = s; return s; } } /** * string action = 6; * @return The bytes for action. */ @java.lang.Override public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); action_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENT_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object event_ = ""; /** * string event = 7; * @return The event. */ @java.lang.Override public java.lang.String getEvent() { java.lang.Object ref = event_; 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(); event_ = s; return s; } } /** * string event = 7; * @return The bytes for event. */ @java.lang.Override public com.google.protobuf.ByteString getEventBytes() { java.lang.Object ref = event_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); event_ = 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 (hour_ != 0) { output.writeInt32(1, hour_); } if (java.lang.Double.doubleToRawLongBits(sec_) != 0) { output.writeDouble(2, sec_); } if (controlIter_ != 0) { output.writeInt32(3, controlIter_); } if (iteration_ != 0) { output.writeInt32(4, iteration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(element_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, element_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, event_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hour_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, hour_); } if (java.lang.Double.doubleToRawLongBits(sec_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, sec_); } if (controlIter_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, controlIter_); } if (iteration_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, iteration_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(element_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, element_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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 com.zepben.protobuf.hc.opendss.EventLogEntry)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.EventLogEntry other = (com.zepben.protobuf.hc.opendss.EventLogEntry) obj; if (getHour() != other.getHour()) return false; if (java.lang.Double.doubleToLongBits(getSec()) != java.lang.Double.doubleToLongBits( other.getSec())) return false; if (getControlIter() != other.getControlIter()) return false; if (getIteration() != other.getIteration()) return false; if (!getElement() .equals(other.getElement())) return false; if (!getAction() .equals(other.getAction())) return false; if (!getEvent() .equals(other.getEvent())) 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) + HOUR_FIELD_NUMBER; hash = (53 * hash) + getHour(); hash = (37 * hash) + SEC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSec())); hash = (37 * hash) + CONTROLITER_FIELD_NUMBER; hash = (53 * hash) + getControlIter(); hash = (37 * hash) + ITERATION_FIELD_NUMBER; hash = (53 * hash) + getIteration(); hash = (37 * hash) + ELEMENT_FIELD_NUMBER; hash = (53 * hash) + getElement().hashCode(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.EventLogEntry 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 com.zepben.protobuf.hc.opendss.EventLogEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.EventLogEntry 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 com.zepben.protobuf.hc.opendss.EventLogEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.EventLogEntry 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(com.zepben.protobuf.hc.opendss.EventLogEntry 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; } /** *
   **
   * Message for a single Event Log Entry
   * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.EventLogEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.EventLogEntry) com.zepben.protobuf.hc.opendss.EventLogEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_EventLogEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_EventLogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.EventLogEntry.class, com.zepben.protobuf.hc.opendss.EventLogEntry.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.EventLogEntry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; hour_ = 0; sec_ = 0D; controlIter_ = 0; iteration_ = 0; element_ = ""; action_ = ""; event_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.hc.opendss.Diagnostics.internal_static_zepben_protobuf_hc_opendss_EventLogEntry_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.EventLogEntry getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.EventLogEntry.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.EventLogEntry build() { com.zepben.protobuf.hc.opendss.EventLogEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.EventLogEntry buildPartial() { com.zepben.protobuf.hc.opendss.EventLogEntry result = new com.zepben.protobuf.hc.opendss.EventLogEntry(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.hc.opendss.EventLogEntry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hour_ = hour_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sec_ = sec_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.controlIter_ = controlIter_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.iteration_ = iteration_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.element_ = element_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.action_ = action_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.event_ = event_; } } @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 com.zepben.protobuf.hc.opendss.EventLogEntry) { return mergeFrom((com.zepben.protobuf.hc.opendss.EventLogEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.EventLogEntry other) { if (other == com.zepben.protobuf.hc.opendss.EventLogEntry.getDefaultInstance()) return this; if (other.getHour() != 0) { setHour(other.getHour()); } if (other.getSec() != 0D) { setSec(other.getSec()); } if (other.getControlIter() != 0) { setControlIter(other.getControlIter()); } if (other.getIteration() != 0) { setIteration(other.getIteration()); } if (!other.getElement().isEmpty()) { element_ = other.element_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getEvent().isEmpty()) { event_ = other.event_; bitField0_ |= 0x00000040; 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 8: { hour_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 17: { sec_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 24: { controlIter_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { iteration_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { element_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { action_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { event_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 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 int hour_ ; /** * int32 hour = 1; * @return The hour. */ @java.lang.Override public int getHour() { return hour_; } /** * int32 hour = 1; * @param value The hour to set. * @return This builder for chaining. */ public Builder setHour(int value) { hour_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 hour = 1; * @return This builder for chaining. */ public Builder clearHour() { bitField0_ = (bitField0_ & ~0x00000001); hour_ = 0; onChanged(); return this; } private double sec_ ; /** * double sec = 2; * @return The sec. */ @java.lang.Override public double getSec() { return sec_; } /** * double sec = 2; * @param value The sec to set. * @return This builder for chaining. */ public Builder setSec(double value) { sec_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * double sec = 2; * @return This builder for chaining. */ public Builder clearSec() { bitField0_ = (bitField0_ & ~0x00000002); sec_ = 0D; onChanged(); return this; } private int controlIter_ ; /** * int32 controlIter = 3; * @return The controlIter. */ @java.lang.Override public int getControlIter() { return controlIter_; } /** * int32 controlIter = 3; * @param value The controlIter to set. * @return This builder for chaining. */ public Builder setControlIter(int value) { controlIter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int32 controlIter = 3; * @return This builder for chaining. */ public Builder clearControlIter() { bitField0_ = (bitField0_ & ~0x00000004); controlIter_ = 0; onChanged(); return this; } private int iteration_ ; /** * int32 iteration = 4; * @return The iteration. */ @java.lang.Override public int getIteration() { return iteration_; } /** * int32 iteration = 4; * @param value The iteration to set. * @return This builder for chaining. */ public Builder setIteration(int value) { iteration_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * int32 iteration = 4; * @return This builder for chaining. */ public Builder clearIteration() { bitField0_ = (bitField0_ & ~0x00000008); iteration_ = 0; onChanged(); return this; } private java.lang.Object element_ = ""; /** * string element = 5; * @return The element. */ public java.lang.String getElement() { java.lang.Object ref = element_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); element_ = s; return s; } else { return (java.lang.String) ref; } } /** * string element = 5; * @return The bytes for element. */ public com.google.protobuf.ByteString getElementBytes() { java.lang.Object ref = element_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); element_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string element = 5; * @param value The element to set. * @return This builder for chaining. */ public Builder setElement( java.lang.String value) { if (value == null) { throw new NullPointerException(); } element_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string element = 5; * @return This builder for chaining. */ public Builder clearElement() { element_ = getDefaultInstance().getElement(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string element = 5; * @param value The bytes for element to set. * @return This builder for chaining. */ public Builder setElementBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); element_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object action_ = ""; /** * string action = 6; * @return The action. */ public java.lang.String getAction() { java.lang.Object ref = action_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); action_ = s; return s; } else { return (java.lang.String) ref; } } /** * string action = 6; * @return The bytes for action. */ public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); action_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string action = 6; * @param value The action to set. * @return This builder for chaining. */ public Builder setAction( java.lang.String value) { if (value == null) { throw new NullPointerException(); } action_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * string action = 6; * @return This builder for chaining. */ public Builder clearAction() { action_ = getDefaultInstance().getAction(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * string action = 6; * @param value The bytes for action to set. * @return This builder for chaining. */ public Builder setActionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); action_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object event_ = ""; /** * string event = 7; * @return The event. */ public java.lang.String getEvent() { java.lang.Object ref = event_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); event_ = s; return s; } else { return (java.lang.String) ref; } } /** * string event = 7; * @return The bytes for event. */ public com.google.protobuf.ByteString getEventBytes() { java.lang.Object ref = event_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); event_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string event = 7; * @param value The event to set. * @return This builder for chaining. */ public Builder setEvent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } event_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * string event = 7; * @return This builder for chaining. */ public Builder clearEvent() { event_ = getDefaultInstance().getEvent(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * string event = 7; * @param value The bytes for event to set. * @return This builder for chaining. */ public Builder setEventBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); event_ = value; bitField0_ |= 0x00000040; 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:zepben.protobuf.hc.opendss.EventLogEntry) } // @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.EventLogEntry) private static final com.zepben.protobuf.hc.opendss.EventLogEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.EventLogEntry(); } public static com.zepben.protobuf.hc.opendss.EventLogEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventLogEntry 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 com.zepben.protobuf.hc.opendss.EventLogEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy