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

org.openfeed.AdminMessage Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * 
 * Administrative Message
 * 
* * Protobuf type {@code org.openfeed.AdminMessage} */ public final class AdminMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.AdminMessage) AdminMessageOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", AdminMessage.class.getName()); } // Use AdminMessage.newBuilder() to construct. private AdminMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AdminMessage() { source_ = ""; languageCode_ = ""; headLine_ = ""; text_ = ""; status_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_AdminMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_AdminMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.AdminMessage.class, org.openfeed.AdminMessage.Builder.class); } /** * Protobuf enum {@code org.openfeed.AdminMessage.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * OK = 0; */ OK(0), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", Status.class.getName()); } /** * OK = 0; */ public static final int OK_VALUE = 0; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return OK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.openfeed.AdminMessage.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:org.openfeed.AdminMessage.Status) } public static final int ORIGINATIONTIME_FIELD_NUMBER = 1; private long originationTime_ = 0L; /** *
   * Origination time = UTC timestamp nano seconds since Unix epoch
   * 
* * sint64 originationTime = 1; * @return The originationTime. */ @java.lang.Override public long getOriginationTime() { return originationTime_; } public static final int SOURCE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object source_ = ""; /** * string source = 2; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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(); source_ = s; return s; } } /** * string source = 2; * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LANGUAGECODE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** * string languageCode = 3; * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; } } /** * string languageCode = 3; * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADLINE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object headLine_ = ""; /** * string headLine = 4; * @return The headLine. */ @java.lang.Override public java.lang.String getHeadLine() { java.lang.Object ref = headLine_; 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(); headLine_ = s; return s; } } /** * string headLine = 4; * @return The bytes for headLine. */ @java.lang.Override public com.google.protobuf.ByteString getHeadLineBytes() { java.lang.Object ref = headLine_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headLine_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** * string text = 5; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; 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(); text_ = s; return s; } } /** * string text = 5; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 6; private int status_ = 0; /** * .org.openfeed.AdminMessage.Status status = 6; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .org.openfeed.AdminMessage.Status status = 6; * @return The status. */ @java.lang.Override public org.openfeed.AdminMessage.Status getStatus() { org.openfeed.AdminMessage.Status result = org.openfeed.AdminMessage.Status.forNumber(status_); return result == null ? org.openfeed.AdminMessage.Status.UNRECOGNIZED : result; } public static final int CHANNEL_FIELD_NUMBER = 7; private int channel_ = 0; /** * sint32 channel = 7; * @return The channel. */ @java.lang.Override public int getChannel() { return channel_; } 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 (originationTime_ != 0L) { output.writeSInt64(1, originationTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, languageCode_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headLine_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, headLine_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, text_); } if (status_ != org.openfeed.AdminMessage.Status.OK.getNumber()) { output.writeEnum(6, status_); } if (channel_ != 0) { output.writeSInt32(7, channel_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (originationTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(1, originationTime_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, languageCode_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(headLine_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, headLine_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, text_); } if (status_ != org.openfeed.AdminMessage.Status.OK.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, status_); } if (channel_ != 0) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(7, channel_); } 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 org.openfeed.AdminMessage)) { return super.equals(obj); } org.openfeed.AdminMessage other = (org.openfeed.AdminMessage) obj; if (getOriginationTime() != other.getOriginationTime()) return false; if (!getSource() .equals(other.getSource())) return false; if (!getLanguageCode() .equals(other.getLanguageCode())) return false; if (!getHeadLine() .equals(other.getHeadLine())) return false; if (!getText() .equals(other.getText())) return false; if (status_ != other.status_) return false; if (getChannel() != other.getChannel()) 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) + ORIGINATIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOriginationTime()); hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); hash = (37 * hash) + LANGUAGECODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + HEADLINE_FIELD_NUMBER; hash = (53 * hash) + getHeadLine().hashCode(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.AdminMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.AdminMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.AdminMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.AdminMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.AdminMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.AdminMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.AdminMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.AdminMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.AdminMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.AdminMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.AdminMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.AdminMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.openfeed.AdminMessage 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Administrative Message
   * 
* * Protobuf type {@code org.openfeed.AdminMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.AdminMessage) org.openfeed.AdminMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_AdminMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_AdminMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.AdminMessage.class, org.openfeed.AdminMessage.Builder.class); } // Construct using org.openfeed.AdminMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; originationTime_ = 0L; source_ = ""; languageCode_ = ""; headLine_ = ""; text_ = ""; status_ = 0; channel_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_AdminMessage_descriptor; } @java.lang.Override public org.openfeed.AdminMessage getDefaultInstanceForType() { return org.openfeed.AdminMessage.getDefaultInstance(); } @java.lang.Override public org.openfeed.AdminMessage build() { org.openfeed.AdminMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.AdminMessage buildPartial() { org.openfeed.AdminMessage result = new org.openfeed.AdminMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.AdminMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.originationTime_ = originationTime_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.source_ = source_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.headLine_ = headLine_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.text_ = text_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.status_ = status_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.channel_ = channel_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.AdminMessage) { return mergeFrom((org.openfeed.AdminMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.AdminMessage other) { if (other == org.openfeed.AdminMessage.getDefaultInstance()) return this; if (other.getOriginationTime() != 0L) { setOriginationTime(other.getOriginationTime()); } if (!other.getSource().isEmpty()) { source_ = other.source_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getHeadLine().isEmpty()) { headLine_ = other.headLine_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getText().isEmpty()) { text_ = other.text_; bitField0_ |= 0x00000010; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.getChannel() != 0) { setChannel(other.getChannel()); } 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: { originationTime_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { source_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { headLine_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { status_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { channel_ = input.readSInt32(); bitField0_ |= 0x00000040; break; } // case 56 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 long originationTime_ ; /** *
     * Origination time = UTC timestamp nano seconds since Unix epoch
     * 
* * sint64 originationTime = 1; * @return The originationTime. */ @java.lang.Override public long getOriginationTime() { return originationTime_; } /** *
     * Origination time = UTC timestamp nano seconds since Unix epoch
     * 
* * sint64 originationTime = 1; * @param value The originationTime to set. * @return This builder for chaining. */ public Builder setOriginationTime(long value) { originationTime_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Origination time = UTC timestamp nano seconds since Unix epoch
     * 
* * sint64 originationTime = 1; * @return This builder for chaining. */ public Builder clearOriginationTime() { bitField0_ = (bitField0_ & ~0x00000001); originationTime_ = 0L; onChanged(); return this; } private java.lang.Object source_ = ""; /** * string source = 2; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } else { return (java.lang.String) ref; } } /** * string source = 2; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string source = 2; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } source_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string source = 2; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string source = 2; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); source_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object languageCode_ = ""; /** * string languageCode = 3; * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * string languageCode = 3; * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string languageCode = 3; * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string languageCode = 3; * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string languageCode = 3; * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object headLine_ = ""; /** * string headLine = 4; * @return The headLine. */ public java.lang.String getHeadLine() { java.lang.Object ref = headLine_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headLine_ = s; return s; } else { return (java.lang.String) ref; } } /** * string headLine = 4; * @return The bytes for headLine. */ public com.google.protobuf.ByteString getHeadLineBytes() { java.lang.Object ref = headLine_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headLine_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string headLine = 4; * @param value The headLine to set. * @return This builder for chaining. */ public Builder setHeadLine( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headLine_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string headLine = 4; * @return This builder for chaining. */ public Builder clearHeadLine() { headLine_ = getDefaultInstance().getHeadLine(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string headLine = 4; * @param value The bytes for headLine to set. * @return This builder for chaining. */ public Builder setHeadLineBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headLine_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object text_ = ""; /** * string text = 5; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** * string text = 5; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string text = 5; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string text = 5; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string text = 5; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int status_ = 0; /** * .org.openfeed.AdminMessage.Status status = 6; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .org.openfeed.AdminMessage.Status status = 6; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * .org.openfeed.AdminMessage.Status status = 6; * @return The status. */ @java.lang.Override public org.openfeed.AdminMessage.Status getStatus() { org.openfeed.AdminMessage.Status result = org.openfeed.AdminMessage.Status.forNumber(status_); return result == null ? org.openfeed.AdminMessage.Status.UNRECOGNIZED : result; } /** * .org.openfeed.AdminMessage.Status status = 6; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(org.openfeed.AdminMessage.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; status_ = value.getNumber(); onChanged(); return this; } /** * .org.openfeed.AdminMessage.Status status = 6; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000020); status_ = 0; onChanged(); return this; } private int channel_ ; /** * sint32 channel = 7; * @return The channel. */ @java.lang.Override public int getChannel() { return channel_; } /** * sint32 channel = 7; * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannel(int value) { channel_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * sint32 channel = 7; * @return This builder for chaining. */ public Builder clearChannel() { bitField0_ = (bitField0_ & ~0x00000040); channel_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.AdminMessage) } // @@protoc_insertion_point(class_scope:org.openfeed.AdminMessage) private static final org.openfeed.AdminMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.AdminMessage(); } public static org.openfeed.AdminMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdminMessage 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 org.openfeed.AdminMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy