public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.common.html.types.SafeScriptProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.common.html.types.SafeScriptProto) 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_script_wrapped_value = 6 [ctype = CORD];</code> */ public Builder setPrivateDoNotAccessOrElseSafeScriptWrappedValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeScriptWrappedValue_ = 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_script_wrapped_value = 6 [ctype = CORD];</code> */ public Builder setPrivateDoNotAccessOrElseSafeScriptWrappedValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeScriptWrappedValue_ = 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_script_wrapped_value = 6 [ctype = CORD];</code> */ public Builder clearPrivateDoNotAccessOrElseSafeScriptWrappedValue() { bitField0_ = (bitField0_ & ~0x00000001); privateDoNotAccessOrElseSafeScriptWrappedValue_ = getDefaultInstance().getPrivateDoNotAccessOrElseSafeScriptWrappedValue(); onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public Builder mergeFrom(com.google.common.html.types.SafeScriptProto other) { if (other == com.google.common.html.types.SafeScriptProto.getDefaultInstance()) return this; if (other.hasPrivateDoNotAccessOrElseSafeScriptWrappedValue()) { bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeScriptWrappedValue_ = other.privateDoNotAccessOrElseSafeScriptWrappedValue_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public com.google.common.html.types.SafeScriptProto build() { com.google.common.html.types.SafeScriptProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static Builder newBuilder(com.google.common.html.types.SafeScriptProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.common.html.types.SafeScriptProto) { return mergeFrom((com.google.common.html.types.SafeScriptProto)other); } else { super.mergeFrom(other); return this; } }
public com.google.common.html.types.SafeScriptProto buildPartial() { com.google.common.html.types.SafeScriptProto result = new com.google.common.html.types.SafeScriptProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.privateDoNotAccessOrElseSafeScriptWrappedValue_ = privateDoNotAccessOrElseSafeScriptWrappedValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * Serializes a SafeScript 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 SafeScript using * {@link #fromProto(SafeScriptProto)}. */ public static SafeScriptProto toProto(SafeScript script) { return SafeScriptProto.newBuilder() .setPrivateDoNotAccessOrElseSafeScriptWrappedValue(script.getSafeScriptString()).build(); }