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

com.alibaba.nacos.consistency.entity.Log Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Data.proto

package com.alibaba.nacos.consistency.entity;

/**
 * 
 *Deprecated
 * 
* * Protobuf type {@code Log} */ public final class Log extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Log) LogOrBuilder { private static final long serialVersionUID = 0L; // Use Log.newBuilder() to construct. private Log(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Log() { group_ = ""; key_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; type_ = ""; operation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Log(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.consistency.entity.Data.internal_static_Log_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.consistency.entity.Data.internal_static_Log_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.consistency.entity.Log.class, com.alibaba.nacos.consistency.entity.Log.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object group_ = ""; /** * string group = 1; * @return The group. */ @java.lang.Override public java.lang.String getGroup() { java.lang.Object ref = group_; 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(); group_ = s; return s; } } /** * string group = 1; * @return The bytes for group. */ @java.lang.Override public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 2; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * string key = 2; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int TYPE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * string type = 4; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** * string type = 4; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATION_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** * string operation = 5; * @return The operation. */ @java.lang.Override public java.lang.String getOperation() { java.lang.Object ref = operation_; 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(); operation_ = s; return s; } } /** * string operation = 5; * @return The bytes for operation. */ @java.lang.Override public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTENDINFO_FIELD_NUMBER = 6; private static final class ExtendInfoDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.alibaba.nacos.consistency.entity.Data.internal_static_Log_ExtendInfoEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> extendInfo_; private com.google.protobuf.MapField internalGetExtendInfo() { if (extendInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } return extendInfo_; } public int getExtendInfoCount() { return internalGetExtendInfo().getMap().size(); } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public boolean containsExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtendInfo().getMap().containsKey(key); } /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtendInfo() { return getExtendInfoMap(); } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public java.util.Map getExtendInfoMap() { return internalGetExtendInfo().getMap(); } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public /* nullable */ java.lang.String getExtendInfoOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public java.lang.String getExtendInfoOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } if (!data_.isEmpty()) { output.writeBytes(3, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, operation_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtendInfo(), ExtendInfoDefaultEntryHolder.defaultEntry, 6); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operation_); } for (java.util.Map.Entry entry : internalGetExtendInfo().getMap().entrySet()) { com.google.protobuf.MapEntry extendInfo__ = ExtendInfoDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, extendInfo__); } 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.alibaba.nacos.consistency.entity.Log)) { return super.equals(obj); } com.alibaba.nacos.consistency.entity.Log other = (com.alibaba.nacos.consistency.entity.Log) obj; if (!getGroup() .equals(other.getGroup())) return false; if (!getKey() .equals(other.getKey())) return false; if (!getData() .equals(other.getData())) return false; if (!getType() .equals(other.getType())) return false; if (!getOperation() .equals(other.getOperation())) return false; if (!internalGetExtendInfo().equals( other.internalGetExtendInfo())) 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) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroup().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); if (!internalGetExtendInfo().getMap().isEmpty()) { hash = (37 * hash) + EXTENDINFO_FIELD_NUMBER; hash = (53 * hash) + internalGetExtendInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.alibaba.nacos.consistency.entity.Log parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.consistency.entity.Log parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.consistency.entity.Log parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.consistency.entity.Log parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.consistency.entity.Log parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.alibaba.nacos.consistency.entity.Log parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.alibaba.nacos.consistency.entity.Log parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.alibaba.nacos.consistency.entity.Log 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.alibaba.nacos.consistency.entity.Log parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.alibaba.nacos.consistency.entity.Log 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.alibaba.nacos.consistency.entity.Log parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.alibaba.nacos.consistency.entity.Log 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.alibaba.nacos.consistency.entity.Log 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; } /** *
   *Deprecated
   * 
* * Protobuf type {@code Log} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Log) com.alibaba.nacos.consistency.entity.LogOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.alibaba.nacos.consistency.entity.Data.internal_static_Log_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.alibaba.nacos.consistency.entity.Data.internal_static_Log_fieldAccessorTable .ensureFieldAccessorsInitialized( com.alibaba.nacos.consistency.entity.Log.class, com.alibaba.nacos.consistency.entity.Log.Builder.class); } // Construct using com.alibaba.nacos.consistency.entity.Log.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; group_ = ""; key_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; type_ = ""; operation_ = ""; internalGetMutableExtendInfo().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.alibaba.nacos.consistency.entity.Data.internal_static_Log_descriptor; } @java.lang.Override public com.alibaba.nacos.consistency.entity.Log getDefaultInstanceForType() { return com.alibaba.nacos.consistency.entity.Log.getDefaultInstance(); } @java.lang.Override public com.alibaba.nacos.consistency.entity.Log build() { com.alibaba.nacos.consistency.entity.Log result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.alibaba.nacos.consistency.entity.Log buildPartial() { com.alibaba.nacos.consistency.entity.Log result = new com.alibaba.nacos.consistency.entity.Log(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.alibaba.nacos.consistency.entity.Log result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.group_ = group_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.operation_ = operation_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.extendInfo_ = internalGetExtendInfo(); result.extendInfo_.makeImmutable(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.alibaba.nacos.consistency.entity.Log) { return mergeFrom((com.alibaba.nacos.consistency.entity.Log)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.alibaba.nacos.consistency.entity.Log other) { if (other == com.alibaba.nacos.consistency.entity.Log.getDefaultInstance()) return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000002; onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000010; onChanged(); } internalGetMutableExtendInfo().mergeFrom( other.internalGetExtendInfo()); bitField0_ |= 0x00000020; 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: { group_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { data_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { operation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry extendInfo__ = input.readMessage( ExtendInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtendInfo().getMutableMap().put( extendInfo__.getKey(), extendInfo__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object group_ = ""; /** * string group = 1; * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } else { return (java.lang.String) ref; } } /** * string group = 1; * @return The bytes for group. */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string group = 1; * @param value The group to set. * @return This builder for chaining. */ public Builder setGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } group_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string group = 1; * @return This builder for chaining. */ public Builder clearGroup() { group_ = getDefaultInstance().getGroup(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string group = 1; * @param value The bytes for group to set. * @return This builder for chaining. */ public Builder setGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); group_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object key_ = ""; /** * string key = 2; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 2; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 2; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string key = 2; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string key = 2; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 3; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * bytes data = 3; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000004); data_ = getDefaultInstance().getData(); onChanged(); return this; } private java.lang.Object type_ = ""; /** * string type = 4; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * string type = 4; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string type = 4; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string type = 4; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string type = 4; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object operation_ = ""; /** * string operation = 5; * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string operation = 5; * @return The bytes for operation. */ public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); operation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string operation = 5; * @param value The operation to set. * @return This builder for chaining. */ public Builder setOperation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string operation = 5; * @return This builder for chaining. */ public Builder clearOperation() { operation_ = getDefaultInstance().getOperation(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string operation = 5; * @param value The bytes for operation to set. * @return This builder for chaining. */ public Builder setOperationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extendInfo_; private com.google.protobuf.MapField internalGetExtendInfo() { if (extendInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } return extendInfo_; } private com.google.protobuf.MapField internalGetMutableExtendInfo() { if (extendInfo_ == null) { extendInfo_ = com.google.protobuf.MapField.newMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } if (!extendInfo_.isMutable()) { extendInfo_ = extendInfo_.copy(); } bitField0_ |= 0x00000020; onChanged(); return extendInfo_; } public int getExtendInfoCount() { return internalGetExtendInfo().getMap().size(); } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public boolean containsExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtendInfo().getMap().containsKey(key); } /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtendInfo() { return getExtendInfoMap(); } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public java.util.Map getExtendInfoMap() { return internalGetExtendInfo().getMap(); } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public /* nullable */ java.lang.String getExtendInfoOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> extendInfo = 6; */ @java.lang.Override public java.lang.String getExtendInfoOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtendInfo() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableExtendInfo().getMutableMap() .clear(); return this; } /** * map<string, string> extendInfo = 6; */ public Builder removeExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtendInfo().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtendInfo() { bitField0_ |= 0x00000020; return internalGetMutableExtendInfo().getMutableMap(); } /** * map<string, string> extendInfo = 6; */ public Builder putExtendInfo( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtendInfo().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** * map<string, string> extendInfo = 6; */ public Builder putAllExtendInfo( java.util.Map values) { internalGetMutableExtendInfo().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; 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:Log) } // @@protoc_insertion_point(class_scope:Log) private static final com.alibaba.nacos.consistency.entity.Log DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.alibaba.nacos.consistency.entity.Log(); } public static com.alibaba.nacos.consistency.entity.Log getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Log 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.alibaba.nacos.consistency.entity.Log getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy