Class ActionConfig.Builder (0.99.0)

public static final class ActionConfig.Builder extends GeneratedMessage.Builder<ActionConfig.Builder> implements ActionConfigOrBuilder

Informations to support actions on the connector.

Protobuf type google.cloud.discoveryengine.v1.ActionConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ActionConfig build()
Returns
Type Description
ActionConfig

buildPartial()

public ActionConfig buildPartial()
Returns
Type Description
ActionConfig

clear()

public ActionConfig.Builder clear()
Returns
Type Description
ActionConfig.Builder
Overrides

clearActionConfigParams()

public ActionConfig.Builder clearActionConfigParams()
Returns
Type Description
ActionConfig.Builder

clearActionParams()

public ActionConfig.Builder clearActionParams()

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ActionConfig.Builder

clearCreateBapConnection()

public ActionConfig.Builder clearCreateBapConnection()

Optional. Whether to create a BAP connection for the connector.

bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

clearIsActionConfigured()

public ActionConfig.Builder clearIsActionConfigured()

Output only. The connector contains the necessary parameters and is configured to support actions.

bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

clearJsonActionParams()

public ActionConfig.Builder clearJsonActionParams()

Optional. Action parameters in json string format.

string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

clearServiceName()

public ActionConfig.Builder clearServiceName()

Optional. The Service Directory resource name (projects/*/locations/*/namespaces/*/services/*) representing a VPC network endpoint used to connect to the data source's instance_uri, defined in DataConnector.params.

Required when VPC Service Controls are enabled.

string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

clearUseStaticSecrets()

public ActionConfig.Builder clearUseStaticSecrets()

Optional. Whether to use static secrets for the connector. If true, the secrets provided in the action_params will be ignored.

bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

clearUserDefinedScopesMapping()

public ActionConfig.Builder clearUserDefinedScopesMapping()
Returns
Type Description
ActionConfig.Builder

containsUserDefinedScopesMapping(String key)

public boolean containsUserDefinedScopesMapping(String key)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getActionConfigParamsCase()

public ActionConfig.ActionConfigParamsCase getActionConfigParamsCase()
Returns
Type Description
ActionConfig.ActionConfigParamsCase

getActionParams()

public Struct getActionParams()

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The actionParams.

getActionParamsBuilder()

public Struct.Builder getActionParamsBuilder()

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getActionParamsOrBuilder()

public StructOrBuilder getActionParamsOrBuilder()

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getCreateBapConnection()

public boolean getCreateBapConnection()

Optional. Whether to create a BAP connection for the connector.

bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The createBapConnection.

getDefaultInstanceForType()

public ActionConfig getDefaultInstanceForType()
Returns
Type Description
ActionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIsActionConfigured()

public boolean getIsActionConfigured()

Output only. The connector contains the necessary parameters and is configured to support actions.

bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The isActionConfigured.

getJsonActionParams()

public String getJsonActionParams()

Optional. Action parameters in json string format.

string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The jsonActionParams.

getJsonActionParamsBytes()

public ByteString getJsonActionParamsBytes()

Optional. Action parameters in json string format.

string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for jsonActionParams.

getMutableUserDefinedScopesMapping() (deprecated)

public Map<String,ActionConfig.ScopeList> getMutableUserDefinedScopesMapping()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ScopeList>

getServiceName()

public String getServiceName()

Optional. The Service Directory resource name (projects/*/locations/*/namespaces/*/services/*) representing a VPC network endpoint used to connect to the data source's instance_uri, defined in DataConnector.params.

Required when VPC Service Controls are enabled.

string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

Optional. The Service Directory resource name (projects/*/locations/*/namespaces/*/services/*) representing a VPC network endpoint used to connect to the data source's instance_uri, defined in DataConnector.params.

Required when VPC Service Controls are enabled.

string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceName.

getUseStaticSecrets()

public boolean getUseStaticSecrets()

Optional. Whether to use static secrets for the connector. If true, the secrets provided in the action_params will be ignored.

bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The useStaticSecrets.

getUserDefinedScopesMapping() (deprecated)

public Map<String,ActionConfig.ScopeList> getUserDefinedScopesMapping()
Returns
Type Description
Map<String,ScopeList>

getUserDefinedScopesMappingCount()

public int getUserDefinedScopesMappingCount()

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getUserDefinedScopesMappingMap()

public Map<String,ActionConfig.ScopeList> getUserDefinedScopesMappingMap()

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,ScopeList>

getUserDefinedScopesMappingOrDefault(String key, ActionConfig.ScopeList defaultValue)

public ActionConfig.ScopeList getUserDefinedScopesMappingOrDefault(String key, ActionConfig.ScopeList defaultValue)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue ActionConfig.ScopeList
Returns
Type Description
ActionConfig.ScopeList

getUserDefinedScopesMappingOrThrow(String key)

public ActionConfig.ScopeList getUserDefinedScopesMappingOrThrow(String key)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ActionConfig.ScopeList

hasActionParams()

public boolean hasActionParams()

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the actionParams field is set.

hasJsonActionParams()

public boolean hasJsonActionParams()

Optional. Action parameters in json string format.

string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the jsonActionParams field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActionParams(Struct value)

public ActionConfig.Builder mergeActionParams(Struct value)

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
ActionConfig.Builder

mergeFrom(ActionConfig other)

public ActionConfig.Builder mergeFrom(ActionConfig other)
Parameter
Name Description
other ActionConfig
Returns
Type Description
ActionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ActionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ActionConfig.Builder
Overrides

putAllUserDefinedScopesMapping(Map<String,ActionConfig.ScopeList> values)

public ActionConfig.Builder putAllUserDefinedScopesMapping(Map<String,ActionConfig.ScopeList> values)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,ScopeList>
Returns
Type Description
ActionConfig.Builder

putUserDefinedScopesMapping(String key, ActionConfig.ScopeList value)

public ActionConfig.Builder putUserDefinedScopesMapping(String key, ActionConfig.ScopeList value)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value ActionConfig.ScopeList
Returns
Type Description
ActionConfig.Builder

putUserDefinedScopesMappingBuilderIfAbsent(String key)

public ActionConfig.ScopeList.Builder putUserDefinedScopesMappingBuilderIfAbsent(String key)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ActionConfig.ScopeList.Builder

removeUserDefinedScopesMapping(String key)

public ActionConfig.Builder removeUserDefinedScopesMapping(String key)

Optional. Mapping from operation name to the list of scopes. Only be populated if there are user specified scopes.

map<string, .google.cloud.discoveryengine.v1.ActionConfig.ScopeList> user_defined_scopes_mapping = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ActionConfig.Builder

setActionParams(Struct value)

public ActionConfig.Builder setActionParams(Struct value)

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
ActionConfig.Builder

setActionParams(Struct.Builder builderForValue)

public ActionConfig.Builder setActionParams(Struct.Builder builderForValue)

Optional. Action parameters in structured json format.

.google.protobuf.Struct action_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ActionConfig.Builder

setCreateBapConnection(boolean value)

public ActionConfig.Builder setCreateBapConnection(boolean value)

Optional. Whether to create a BAP connection for the connector.

bool create_bap_connection = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The createBapConnection to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

setIsActionConfigured(boolean value)

public ActionConfig.Builder setIsActionConfigured(boolean value)

Output only. The connector contains the necessary parameters and is configured to support actions.

bool is_action_configured = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The isActionConfigured to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

setJsonActionParams(String value)

public ActionConfig.Builder setJsonActionParams(String value)

Optional. Action parameters in json string format.

string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The jsonActionParams to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

setJsonActionParamsBytes(ByteString value)

public ActionConfig.Builder setJsonActionParamsBytes(ByteString value)

Optional. Action parameters in json string format.

string json_action_params = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for jsonActionParams to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

setServiceName(String value)

public ActionConfig.Builder setServiceName(String value)

Optional. The Service Directory resource name (projects/*/locations/*/namespaces/*/services/*) representing a VPC network endpoint used to connect to the data source's instance_uri, defined in DataConnector.params.

Required when VPC Service Controls are enabled.

string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public ActionConfig.Builder setServiceNameBytes(ByteString value)

Optional. The Service Directory resource name (projects/*/locations/*/namespaces/*/services/*) representing a VPC network endpoint used to connect to the data source's instance_uri, defined in DataConnector.params.

Required when VPC Service Controls are enabled.

string service_name = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.

setUseStaticSecrets(boolean value)

public ActionConfig.Builder setUseStaticSecrets(boolean value)

Optional. Whether to use static secrets for the connector. If true, the secrets provided in the action_params will be ignored.

bool use_static_secrets = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The useStaticSecrets to set.

Returns
Type Description
ActionConfig.Builder

This builder for chaining.