Class PythonFunction.Builder (0.1.0)

public static final class PythonFunction.Builder extends GeneratedMessage.Builder<PythonFunction.Builder> implements PythonFunctionOrBuilder

A Python function tool.

Protobuf type google.cloud.ces.v1.PythonFunction

Static Methods

getDescriptor()

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

Methods

build()

public PythonFunction build()
Returns
Type Description
PythonFunction

buildPartial()

public PythonFunction buildPartial()
Returns
Type Description
PythonFunction

clear()

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

clearDescription()

public PythonFunction.Builder clearDescription()

Output only. The description of the Python function, parsed from the python code's docstring.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

clearName()

public PythonFunction.Builder clearName()

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

clearPythonCode()

public PythonFunction.Builder clearPythonCode()

Optional. The Python code to execute for the tool.

string python_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

getDefaultInstanceForType()

public PythonFunction getDefaultInstanceForType()
Returns
Type Description
PythonFunction

getDescription()

public String getDescription()

Output only. The description of the Python function, parsed from the python code's docstring.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description of the Python function, parsed from the python code's docstring.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getPythonCode()

public String getPythonCode()

Optional. The Python code to execute for the tool.

string python_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pythonCode.

getPythonCodeBytes()

public ByteString getPythonCodeBytes()

Optional. The Python code to execute for the tool.

string python_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pythonCode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PythonFunction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public PythonFunction.Builder setDescription(String value)

Output only. The description of the Python function, parsed from the python code's docstring.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PythonFunction.Builder setDescriptionBytes(ByteString value)

Output only. The description of the Python function, parsed from the python code's docstring.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

setName(String value)

public PythonFunction.Builder setName(String value)

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PythonFunction.Builder setNameBytes(ByteString value)

Optional. The name of the Python function to execute. Must match a Python function name defined in the python code. Case sensitive. If the name is not provided, the first function defined in the python code will be used.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

setPythonCode(String value)

public PythonFunction.Builder setPythonCode(String value)

Optional. The Python code to execute for the tool.

string python_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pythonCode to set.

Returns
Type Description
PythonFunction.Builder

This builder for chaining.

setPythonCodeBytes(ByteString value)

public PythonFunction.Builder setPythonCodeBytes(ByteString value)

Optional. The Python code to execute for the tool.

string python_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pythonCode to set.

Returns
Type Description
PythonFunction.Builder

This builder for chaining.