Class BackendServiceIAP.Builder (1.31.0)

public static final class BackendServiceIAP.Builder extends GeneratedMessageV3.Builder<BackendServiceIAP.Builder> implements BackendServiceIAPOrBuilder

Identity-Aware Proxy

Protobuf type google.cloud.compute.v1.BackendServiceIAP

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceIAP.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

build()

public BackendServiceIAP build()
Returns
TypeDescription
BackendServiceIAP

buildPartial()

public BackendServiceIAP buildPartial()
Returns
TypeDescription
BackendServiceIAP

clear()

public BackendServiceIAP.Builder clear()
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

clearEnabled()

public BackendServiceIAP.Builder clearEnabled()

Whether the serving infrastructure will authenticate and authorize all incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields must be non-empty.

optional bool enabled = 1018689;

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackendServiceIAP.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

clearOauth2ClientId()

public BackendServiceIAP.Builder clearOauth2ClientId()

OAuth2 client ID to use for the authentication flow.

optional string oauth2_client_id = 314017611;

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

clearOauth2ClientSecret()

public BackendServiceIAP.Builder clearOauth2ClientSecret()

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly

optional string oauth2_client_secret = 50999520;

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

clearOauth2ClientSecretSha256()

public BackendServiceIAP.Builder clearOauth2ClientSecretSha256()

[Output Only] SHA256 hash value for the field oauth2_client_secret above.

optional string oauth2_client_secret_sha256 = 112903782;

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceIAP.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

clone()

public BackendServiceIAP.Builder clone()
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

getDefaultInstanceForType()

public BackendServiceIAP getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceIAP

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether the serving infrastructure will authenticate and authorize all incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields must be non-empty.

optional bool enabled = 1018689;

Returns
TypeDescription
boolean

The enabled.

getOauth2ClientId()

public String getOauth2ClientId()

OAuth2 client ID to use for the authentication flow.

optional string oauth2_client_id = 314017611;

Returns
TypeDescription
String

The oauth2ClientId.

getOauth2ClientIdBytes()

public ByteString getOauth2ClientIdBytes()

OAuth2 client ID to use for the authentication flow.

optional string oauth2_client_id = 314017611;

Returns
TypeDescription
ByteString

The bytes for oauth2ClientId.

getOauth2ClientSecret()

public String getOauth2ClientSecret()

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly

optional string oauth2_client_secret = 50999520;

Returns
TypeDescription
String

The oauth2ClientSecret.

getOauth2ClientSecretBytes()

public ByteString getOauth2ClientSecretBytes()

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly

optional string oauth2_client_secret = 50999520;

Returns
TypeDescription
ByteString

The bytes for oauth2ClientSecret.

getOauth2ClientSecretSha256()

public String getOauth2ClientSecretSha256()

[Output Only] SHA256 hash value for the field oauth2_client_secret above.

optional string oauth2_client_secret_sha256 = 112903782;

Returns
TypeDescription
String

The oauth2ClientSecretSha256.

getOauth2ClientSecretSha256Bytes()

public ByteString getOauth2ClientSecretSha256Bytes()

[Output Only] SHA256 hash value for the field oauth2_client_secret above.

optional string oauth2_client_secret_sha256 = 112903782;

Returns
TypeDescription
ByteString

The bytes for oauth2ClientSecretSha256.

hasEnabled()

public boolean hasEnabled()

Whether the serving infrastructure will authenticate and authorize all incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields must be non-empty.

optional bool enabled = 1018689;

Returns
TypeDescription
boolean

Whether the enabled field is set.

hasOauth2ClientId()

public boolean hasOauth2ClientId()

OAuth2 client ID to use for the authentication flow.

optional string oauth2_client_id = 314017611;

Returns
TypeDescription
boolean

Whether the oauth2ClientId field is set.

hasOauth2ClientSecret()

public boolean hasOauth2ClientSecret()

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly

optional string oauth2_client_secret = 50999520;

Returns
TypeDescription
boolean

Whether the oauth2ClientSecret field is set.

hasOauth2ClientSecretSha256()

public boolean hasOauth2ClientSecretSha256()

[Output Only] SHA256 hash value for the field oauth2_client_secret above.

optional string oauth2_client_secret_sha256 = 112903782;

Returns
TypeDescription
boolean

Whether the oauth2ClientSecretSha256 field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackendServiceIAP other)

public BackendServiceIAP.Builder mergeFrom(BackendServiceIAP other)
Parameter
NameDescription
otherBackendServiceIAP
Returns
TypeDescription
BackendServiceIAP.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceIAP.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackendServiceIAP.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceIAP.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

setEnabled(boolean value)

public BackendServiceIAP.Builder setEnabled(boolean value)

Whether the serving infrastructure will authenticate and authorize all incoming requests. If true, the oauth2ClientId and oauth2ClientSecret fields must be non-empty.

optional bool enabled = 1018689;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceIAP.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

setOauth2ClientId(String value)

public BackendServiceIAP.Builder setOauth2ClientId(String value)

OAuth2 client ID to use for the authentication flow.

optional string oauth2_client_id = 314017611;

Parameter
NameDescription
valueString

The oauth2ClientId to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setOauth2ClientIdBytes(ByteString value)

public BackendServiceIAP.Builder setOauth2ClientIdBytes(ByteString value)

OAuth2 client ID to use for the authentication flow.

optional string oauth2_client_id = 314017611;

Parameter
NameDescription
valueByteString

The bytes for oauth2ClientId to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setOauth2ClientSecret(String value)

public BackendServiceIAP.Builder setOauth2ClientSecret(String value)

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly

optional string oauth2_client_secret = 50999520;

Parameter
NameDescription
valueString

The oauth2ClientSecret to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setOauth2ClientSecretBytes(ByteString value)

public BackendServiceIAP.Builder setOauth2ClientSecretBytes(ByteString value)

OAuth2 client secret to use for the authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the oauth2ClientSecretSha256 field. @InputOnly

optional string oauth2_client_secret = 50999520;

Parameter
NameDescription
valueByteString

The bytes for oauth2ClientSecret to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setOauth2ClientSecretSha256(String value)

public BackendServiceIAP.Builder setOauth2ClientSecretSha256(String value)

[Output Only] SHA256 hash value for the field oauth2_client_secret above.

optional string oauth2_client_secret_sha256 = 112903782;

Parameter
NameDescription
valueString

The oauth2ClientSecretSha256 to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setOauth2ClientSecretSha256Bytes(ByteString value)

public BackendServiceIAP.Builder setOauth2ClientSecretSha256Bytes(ByteString value)

[Output Only] SHA256 hash value for the field oauth2_client_secret above.

optional string oauth2_client_secret_sha256 = 112903782;

Parameter
NameDescription
valueByteString

The bytes for oauth2ClientSecretSha256 to set.

Returns
TypeDescription
BackendServiceIAP.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackendServiceIAP.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceIAP.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendServiceIAP.Builder
Overrides