// Code generated by protoc-gen-goext. DO NOT EDIT.

package connectionmanager

import (
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)

type TLSParams_TlsMode = isTLSParams_TlsMode

func (m *TLSParams) SetTlsMode(v TLSParams_TlsMode) {
	m.TlsMode = v
}

func (m *TLSParams) SetDisabled(v *emptypb.Empty) {
	m.TlsMode = &TLSParams_Disabled{
		Disabled: v,
	}
}

func (m *TLSParams) SetTls(v *TLSConfig) {
	m.TlsMode = &TLSParams_Tls{
		Tls: v,
	}
}

func (m *TLSConfig) SetCaCertificate(v string) {
	m.CaCertificate = v
}

type Password_SecretKey = isPassword_SecretKey

func (m *Password) SetSecretKey(v Password_SecretKey) {
	m.SecretKey = v
}

func (m *Password) SetRaw(v string) {
	m.Raw = v
}

func (m *Password) SetPasswordGenerationOptions(v *PasswordGenerationOptions) {
	m.PasswordGenerationOptions = v
}

func (m *Password) SetLockboxSecretKey(v string) {
	m.SecretKey = &Password_LockboxSecretKey{
		LockboxSecretKey: v,
	}
}

type PasswordGenerationOptions_PasswordGenerationOptions = isPasswordGenerationOptions_PasswordGenerationOptions

func (m *PasswordGenerationOptions) SetPasswordGenerationOptions(v PasswordGenerationOptions_PasswordGenerationOptions) {
	m.PasswordGenerationOptions = v
}

func (m *PasswordGenerationOptions) SetCookie(v string) {
	m.Cookie = v
}

func (m *PasswordGenerationOptions) SetLockboxPasswordGenerationOptions(v *LockboxPasswordGenerationOptions) {
	m.PasswordGenerationOptions = &PasswordGenerationOptions_LockboxPasswordGenerationOptions{
		LockboxPasswordGenerationOptions: v,
	}
}

func (m *LockboxPasswordGenerationOptions) SetLength(v int64) {
	m.Length = v
}

func (m *LockboxPasswordGenerationOptions) SetIncludeUppercase(v *wrapperspb.BoolValue) {
	m.IncludeUppercase = v
}

func (m *LockboxPasswordGenerationOptions) SetIncludeLowercase(v *wrapperspb.BoolValue) {
	m.IncludeLowercase = v
}

func (m *LockboxPasswordGenerationOptions) SetIncludeDigits(v *wrapperspb.BoolValue) {
	m.IncludeDigits = v
}

func (m *LockboxPasswordGenerationOptions) SetIncludePunctuation(v *wrapperspb.BoolValue) {
	m.IncludePunctuation = v
}

func (m *LockboxPasswordGenerationOptions) SetIncludedPunctuation(v string) {
	m.IncludedPunctuation = v
}

func (m *LockboxPasswordGenerationOptions) SetExcludedPunctuation(v string) {
	m.ExcludedPunctuation = v
}

func (m *UserPasswordAuth) SetUser(v string) {
	m.User = v
}

func (m *UserPasswordAuth) SetPassword(v *Password) {
	m.Password = v
}
