Class PythonFunction (0.1.0)

public final class PythonFunction extends GeneratedMessage implements PythonFunctionOrBuilder

A Python function tool.

Protobuf type google.cloud.ces.v1.PythonFunction

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PYTHON_CODE_FIELD_NUMBER

public static final int PYTHON_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PythonFunction getDefaultInstance()
Returns
Type Description
PythonFunction

getDescriptor()

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

newBuilder()

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

newBuilder(PythonFunction prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

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.

getParserForType()

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

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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