Class ActionConfig (0.99.0)

public final class ActionConfig extends GeneratedMessage implements ActionConfigOrBuilder

Informations to support actions on the connector.

Protobuf type google.cloud.discoveryengine.v1.ActionConfig

Static Fields

ACTION_PARAMS_FIELD_NUMBER

public static final int ACTION_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_BAP_CONNECTION_FIELD_NUMBER

public static final int CREATE_BAP_CONNECTION_FIELD_NUMBER
Field Value
Type Description
int

IS_ACTION_CONFIGURED_FIELD_NUMBER

public static final int IS_ACTION_CONFIGURED_FIELD_NUMBER
Field Value
Type Description
int

JSON_ACTION_PARAMS_FIELD_NUMBER

public static final int JSON_ACTION_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_NAME_FIELD_NUMBER

public static final int SERVICE_NAME_FIELD_NUMBER
Field Value
Type Description
int

USER_DEFINED_SCOPES_MAPPING_FIELD_NUMBER

public static final int USER_DEFINED_SCOPES_MAPPING_FIELD_NUMBER
Field Value
Type Description
int

USE_STATIC_SECRETS_FIELD_NUMBER

public static final int USE_STATIC_SECRETS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ActionConfig getDefaultInstance()
Returns
Type Description
ActionConfig

getDescriptor()

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

newBuilder()

public static ActionConfig.Builder newBuilder()
Returns
Type Description
ActionConfig.Builder

newBuilder(ActionConfig prototype)

public static ActionConfig.Builder newBuilder(ActionConfig prototype)
Parameter
Name Description
prototype ActionConfig
Returns
Type Description
ActionConfig.Builder

parseDelimitedFrom(InputStream input)

public static ActionConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ActionConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ActionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ActionConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ActionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ActionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ActionConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ActionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ActionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ActionConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ActionConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ActionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ActionConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ActionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ActionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ActionConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ActionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ActionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ActionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ActionConfig> parser()
Returns
Type Description
Parser<ActionConfig>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<ActionConfig> getParserForType()
Returns
Type Description
Parser<ActionConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ActionConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ActionConfig.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException