public static final class WidgetTool.DataMapping extends GeneratedMessage implements WidgetTool.DataMappingOrBuilder
Configuration for mapping data from a source tool to the widget's input
parameters.
Protobuf type google.cloud.ces.v1.WidgetTool.DataMapping
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int FIELD_MAPPINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PYTHON_FUNCTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PYTHON_SCRIPT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SOURCE_TOOL_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static WidgetTool.DataMapping getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static WidgetTool.DataMapping.Builder newBuilder()
public static WidgetTool.DataMapping.Builder newBuilder(WidgetTool.DataMapping prototype)
public static WidgetTool.DataMapping parseDelimitedFrom(InputStream input)
public static WidgetTool.DataMapping parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetTool.DataMapping parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static WidgetTool.DataMapping parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WidgetTool.DataMapping parseFrom(ByteString data)
public static WidgetTool.DataMapping parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WidgetTool.DataMapping parseFrom(CodedInputStream input)
public static WidgetTool.DataMapping parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetTool.DataMapping parseFrom(InputStream input)
public static WidgetTool.DataMapping parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetTool.DataMapping parseFrom(ByteBuffer data)
public static WidgetTool.DataMapping parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<WidgetTool.DataMapping> parser()
Methods
public boolean containsFieldMappings(String key)
Optional. A map of widget input parameter fields to the corresponding
output fields of the source tool.
map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public WidgetTool.DataMapping getDefaultInstanceForType()
public Map<String,String> getFieldMappings()
public int getFieldMappingsCount()
Optional. A map of widget input parameter fields to the corresponding
output fields of the source tool.
map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
public Map<String,String> getFieldMappingsMap()
Optional. A map of widget input parameter fields to the corresponding
output fields of the source tool.
map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];
public String getFieldMappingsOrDefault(String key, String defaultValue)
Optional. A map of widget input parameter fields to the corresponding
output fields of the source tool.
map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
|
public String getFieldMappingsOrThrow(String key)
Optional. A map of widget input parameter fields to the corresponding
output fields of the source tool.
map<string, string> field_mappings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
|
public WidgetTool.DataMapping.Mode getMode()
Optional. The mode of the data mapping.
.google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL];
public int getModeValue()
Optional. The mode of the data mapping.
.google.cloud.ces.v1.WidgetTool.DataMapping.Mode mode = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for mode.
|
public Parser<WidgetTool.DataMapping> getParserForType()
Overrides
public PythonFunction getPythonFunction()
Optional. Configuration for a Python function used to transform the
source tool's output into the widget's input format.
.google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL];
public PythonFunctionOrBuilder getPythonFunctionOrBuilder()
Optional. Configuration for a Python function used to transform the
source tool's output into the widget's input format.
.google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL];
public String getPythonScript()
Deprecated. google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See
google/cloud/ces/v1/widget_tool.proto;l=66
Deprecated: Use python_function instead.
string python_script = 3 [deprecated = true];
| Returns |
| Type |
Description |
String |
The pythonScript.
|
public ByteString getPythonScriptBytes()
Deprecated. google.cloud.ces.v1.WidgetTool.DataMapping.python_script is deprecated. See
google/cloud/ces/v1/widget_tool.proto;l=66
Deprecated: Use python_function instead.
string python_script = 3 [deprecated = true];
| Returns |
| Type |
Description |
ByteString |
The bytes for pythonScript.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getSourceToolName()
Optional. The resource name of the tool that provides the data for the
widget (e.g., a search tool or a custom function). Format:
projects/{project}/locations/{location}/agents/{agent}/tools/{tool}
string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The sourceToolName.
|
public ByteString getSourceToolNameBytes()
Optional. The resource name of the tool that provides the data for the
widget (e.g., a search tool or a custom function). Format:
projects/{project}/locations/{location}/agents/{agent}/tools/{tool}
string source_tool_name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for sourceToolName.
|
public boolean hasPythonFunction()
Optional. Configuration for a Python function used to transform the
source tool's output into the widget's input format.
.google.cloud.ces.v1.PythonFunction python_function = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the pythonFunction field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public WidgetTool.DataMapping.Builder newBuilderForType()
protected WidgetTool.DataMapping.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public WidgetTool.DataMapping.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides