/** * * * <pre> * The password to authenticate. * </pre> * * <code>string password = 2;</code> */ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; onChanged(); return this; }
/** * * * <pre> * The password to authenticate. * </pre> * * <code>string password = 2;</code> */ public Builder setPassword(java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /**
/** * * * <pre> * The username to authenticate. * </pre> * * <code>string username = 1;</code> */ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; onChanged(); return this; }
/** * * * <pre> * The username to authenticate. * </pre> * * <code>string username = 1;</code> */ public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); } username_ = value; onChanged(); return this; } /**
public Builder mergeFrom( com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication other) { if (other == com.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The password to authenticate. * </pre> * * <code>string password = 2;</code> */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /**
/** * * * <pre> * The username to authenticate. * </pre> * * <code>string username = 1;</code> */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /**