public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.common.html.types.SafeHtmlProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.common.html.types.SafeHtmlProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <pre> * IMPORTANT: Never set or read this field, even from tests, it is private. * See documentation at the top of .proto file for programming language * packages with which to create or read this message. * </pre> * * <code>optional string private_do_not_access_or_else_safe_html_wrapped_value = 2 [ctype = CORD];</code> */ public Builder setPrivateDoNotAccessOrElseSafeHtmlWrappedValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * IMPORTANT: Never set or read this field, even from tests, it is private. * See documentation at the top of .proto file for programming language * packages with which to create or read this message. * </pre> * * <code>optional string private_do_not_access_or_else_safe_html_wrapped_value = 2 [ctype = CORD];</code> */ public Builder setPrivateDoNotAccessOrElseSafeHtmlWrappedValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value; onChanged(); return this; } /**
/** * <pre> * IMPORTANT: Never set or read this field, even from tests, it is private. * See documentation at the top of .proto file for programming language * packages with which to create or read this message. * </pre> * * <code>optional string private_do_not_access_or_else_safe_html_wrapped_value = 2 [ctype = CORD];</code> */ public Builder clearPrivateDoNotAccessOrElseSafeHtmlWrappedValue() { bitField0_ = (bitField0_ & ~0x00000001); privateDoNotAccessOrElseSafeHtmlWrappedValue_ = getDefaultInstance().getPrivateDoNotAccessOrElseSafeHtmlWrappedValue(); onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(com.google.common.html.types.SafeHtmlProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public com.google.common.html.types.SafeHtmlProto build() { com.google.common.html.types.SafeHtmlProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * Serializes a SafeHtml into its opaque protocol message representation. * * <p>Protocol message forms of this type are intended to be opaque. The fields of the returned * protocol message should be considered encapsulated and are not intended for direct inspection * or manipulation. Protocol messages can be converted back into a SafeHtml using * {@link #fromProto(SafeHtmlProto)}. */ public static SafeHtmlProto toProto(SafeHtml safeHtml) { return SafeHtmlProto.newBuilder().setPrivateDoNotAccessOrElseSafeHtmlWrappedValue( safeHtml.getSafeHtmlString()).build(); }
public Builder mergeFrom(com.google.common.html.types.SafeHtmlProto other) { if (other == com.google.common.html.types.SafeHtmlProto.getDefaultInstance()) return this; if (other.hasPrivateDoNotAccessOrElseSafeHtmlWrappedValue()) { bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeHtmlWrappedValue_ = other.privateDoNotAccessOrElseSafeHtmlWrappedValue_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.common.html.types.SafeHtmlProto) { return mergeFrom((com.google.common.html.types.SafeHtmlProto)other); } else { super.mergeFrom(other); return this; } }
public com.google.common.html.types.SafeHtmlProto buildPartial() { com.google.common.html.types.SafeHtmlProto result = new com.google.common.html.types.SafeHtmlProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = privateDoNotAccessOrElseSafeHtmlWrappedValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }