Class RoutineSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.datacatalog.v1.RoutineSpec
All Implemented Interfaces:
RoutineSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RoutineSpec extends com.google.protobuf.GeneratedMessage implements RoutineSpecOrBuilder
 Specification that applies to a routine. Valid only for
 entries with the `ROUTINE` type.
 
Protobuf type google.cloud.datacatalog.v1.RoutineSpec
See Also:
  • Field Details

    • ROUTINE_TYPE_FIELD_NUMBER

      public static final int ROUTINE_TYPE_FIELD_NUMBER
      See Also:
    • LANGUAGE_FIELD_NUMBER

      public static final int LANGUAGE_FIELD_NUMBER
      See Also:
    • ROUTINE_ARGUMENTS_FIELD_NUMBER

      public static final int ROUTINE_ARGUMENTS_FIELD_NUMBER
      See Also:
    • RETURN_TYPE_FIELD_NUMBER

      public static final int RETURN_TYPE_FIELD_NUMBER
      See Also:
    • DEFINITION_BODY_FIELD_NUMBER

      public static final int DEFINITION_BODY_FIELD_NUMBER
      See Also:
    • BIGQUERY_ROUTINE_SPEC_FIELD_NUMBER

      public static final int BIGQUERY_ROUTINE_SPEC_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSystemSpecCase

      public RoutineSpec.SystemSpecCase getSystemSpecCase()
      Specified by:
      getSystemSpecCase in interface RoutineSpecOrBuilder
    • getRoutineTypeValue

      public int getRoutineTypeValue()
       The type of the routine.
       
      .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;
      Specified by:
      getRoutineTypeValue in interface RoutineSpecOrBuilder
      Returns:
      The enum numeric value on the wire for routineType.
    • getRoutineType

      public RoutineSpec.RoutineType getRoutineType()
       The type of the routine.
       
      .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;
      Specified by:
      getRoutineType in interface RoutineSpecOrBuilder
      Returns:
      The routineType.
    • getLanguage

      public String getLanguage()
       The language the routine is written in. The exact value depends on the
       source system. For BigQuery routines, possible values are:
      
       * `SQL`
       * `JAVASCRIPT`
       
      string language = 2;
      Specified by:
      getLanguage in interface RoutineSpecOrBuilder
      Returns:
      The language.
    • getLanguageBytes

      public com.google.protobuf.ByteString getLanguageBytes()
       The language the routine is written in. The exact value depends on the
       source system. For BigQuery routines, possible values are:
      
       * `SQL`
       * `JAVASCRIPT`
       
      string language = 2;
      Specified by:
      getLanguageBytes in interface RoutineSpecOrBuilder
      Returns:
      The bytes for language.
    • getRoutineArgumentsList

      public List<RoutineSpec.Argument> getRoutineArgumentsList()
       Arguments of the routine.
       
      repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;
      Specified by:
      getRoutineArgumentsList in interface RoutineSpecOrBuilder
    • getRoutineArgumentsOrBuilderList

      public List<? extends RoutineSpec.ArgumentOrBuilder> getRoutineArgumentsOrBuilderList()
       Arguments of the routine.
       
      repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;
      Specified by:
      getRoutineArgumentsOrBuilderList in interface RoutineSpecOrBuilder
    • getRoutineArgumentsCount

      public int getRoutineArgumentsCount()
       Arguments of the routine.
       
      repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;
      Specified by:
      getRoutineArgumentsCount in interface RoutineSpecOrBuilder
    • getRoutineArguments

      public RoutineSpec.Argument getRoutineArguments(int index)
       Arguments of the routine.
       
      repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;
      Specified by:
      getRoutineArguments in interface RoutineSpecOrBuilder
    • getRoutineArgumentsOrBuilder

      public RoutineSpec.ArgumentOrBuilder getRoutineArgumentsOrBuilder(int index)
       Arguments of the routine.
       
      repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;
      Specified by:
      getRoutineArgumentsOrBuilder in interface RoutineSpecOrBuilder
    • getReturnType

      public String getReturnType()
       Return type of the argument. The exact value depends on the source system
       and the language.
       
      string return_type = 4;
      Specified by:
      getReturnType in interface RoutineSpecOrBuilder
      Returns:
      The returnType.
    • getReturnTypeBytes

      public com.google.protobuf.ByteString getReturnTypeBytes()
       Return type of the argument. The exact value depends on the source system
       and the language.
       
      string return_type = 4;
      Specified by:
      getReturnTypeBytes in interface RoutineSpecOrBuilder
      Returns:
      The bytes for returnType.
    • getDefinitionBody

      public String getDefinitionBody()
       The body of the routine.
       
      string definition_body = 5;
      Specified by:
      getDefinitionBody in interface RoutineSpecOrBuilder
      Returns:
      The definitionBody.
    • getDefinitionBodyBytes

      public com.google.protobuf.ByteString getDefinitionBodyBytes()
       The body of the routine.
       
      string definition_body = 5;
      Specified by:
      getDefinitionBodyBytes in interface RoutineSpecOrBuilder
      Returns:
      The bytes for definitionBody.
    • hasBigqueryRoutineSpec

      public boolean hasBigqueryRoutineSpec()
       Fields specific for BigQuery routines.
       
      .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;
      Specified by:
      hasBigqueryRoutineSpec in interface RoutineSpecOrBuilder
      Returns:
      Whether the bigqueryRoutineSpec field is set.
    • getBigqueryRoutineSpec

      public BigQueryRoutineSpec getBigqueryRoutineSpec()
       Fields specific for BigQuery routines.
       
      .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;
      Specified by:
      getBigqueryRoutineSpec in interface RoutineSpecOrBuilder
      Returns:
      The bigqueryRoutineSpec.
    • getBigqueryRoutineSpecOrBuilder

      public BigQueryRoutineSpecOrBuilder getBigqueryRoutineSpecOrBuilder()
       Fields specific for BigQuery routines.
       
      .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;
      Specified by:
      getBigqueryRoutineSpecOrBuilder in interface RoutineSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RoutineSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RoutineSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RoutineSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RoutineSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RoutineSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RoutineSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RoutineSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RoutineSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RoutineSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RoutineSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RoutineSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RoutineSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RoutineSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RoutineSpec.Builder newBuilder()
    • newBuilder

      public static RoutineSpec.Builder newBuilder(RoutineSpec prototype)
    • toBuilder

      public RoutineSpec.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RoutineSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RoutineSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RoutineSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<RoutineSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RoutineSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder