Class StardocOutputProtos.FunctionParamInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
com.google.devtools.build.lib.starlarkdocextract.StardocOutputProtos.FunctionParamInfo.Builder
All Implemented Interfaces:
StardocOutputProtos.FunctionParamInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StardocOutputProtos.FunctionParamInfo

public static final class StardocOutputProtos.FunctionParamInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder> implements StardocOutputProtos.FunctionParamInfoOrBuilder
 Representation of a Starlark function parameter definition.
 
Protobuf type stardoc_output.FunctionParamInfo
  • 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.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
    • getDefaultInstanceForType

      public StardocOutputProtos.FunctionParamInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StardocOutputProtos.FunctionParamInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
    • mergeFrom

      public StardocOutputProtos.FunctionParamInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StardocOutputProtos.FunctionParamInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the parameter. This does *not* include the `*` or `**` prefix
       for varargs or residual keyword argument parameters.
       
      string name = 1;
      Specified by:
      getName in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the parameter. This does *not* include the `*` or `**` prefix
       for varargs or residual keyword argument parameters.
       
      string name = 1;
      Specified by:
      getNameBytes in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the parameter. This does *not* include the `*` or `**` prefix
       for varargs or residual keyword argument parameters.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the parameter. This does *not* include the `*` or `**` prefix
       for varargs or residual keyword argument parameters.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public StardocOutputProtos.FunctionParamInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the parameter. This does *not* include the `*` or `**` prefix
       for varargs or residual keyword argument parameters.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDocString

      public String getDocString()
       The documented description of the parameter (if specified in the function's
       docstring).
       
      string doc_string = 2;
      Specified by:
      getDocString in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The docString.
    • getDocStringBytes

      public com.google.protobuf.ByteString getDocStringBytes()
       The documented description of the parameter (if specified in the function's
       docstring).
       
      string doc_string = 2;
      Specified by:
      getDocStringBytes in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The bytes for docString.
    • setDocString

       The documented description of the parameter (if specified in the function's
       docstring).
       
      string doc_string = 2;
      Parameters:
      value - The docString to set.
      Returns:
      This builder for chaining.
    • clearDocString

       The documented description of the parameter (if specified in the function's
       docstring).
       
      string doc_string = 2;
      Returns:
      This builder for chaining.
    • setDocStringBytes

      public StardocOutputProtos.FunctionParamInfo.Builder setDocStringBytes(com.google.protobuf.ByteString value)
       The documented description of the parameter (if specified in the function's
       docstring).
       
      string doc_string = 2;
      Parameters:
      value - The bytes for docString to set.
      Returns:
      This builder for chaining.
    • getDefaultValue

      public String getDefaultValue()
       If not an empty string, the default value of the parameter displayed
       as a string.
       
      string default_value = 3;
      Specified by:
      getDefaultValue in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The defaultValue.
    • getDefaultValueBytes

      public com.google.protobuf.ByteString getDefaultValueBytes()
       If not an empty string, the default value of the parameter displayed
       as a string.
       
      string default_value = 3;
      Specified by:
      getDefaultValueBytes in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The bytes for defaultValue.
    • setDefaultValue

      public StardocOutputProtos.FunctionParamInfo.Builder setDefaultValue(String value)
       If not an empty string, the default value of the parameter displayed
       as a string.
       
      string default_value = 3;
      Parameters:
      value - The defaultValue to set.
      Returns:
      This builder for chaining.
    • clearDefaultValue

       If not an empty string, the default value of the parameter displayed
       as a string.
       
      string default_value = 3;
      Returns:
      This builder for chaining.
    • setDefaultValueBytes

      public StardocOutputProtos.FunctionParamInfo.Builder setDefaultValueBytes(com.google.protobuf.ByteString value)
       If not an empty string, the default value of the parameter displayed
       as a string.
       
      string default_value = 3;
      Parameters:
      value - The bytes for defaultValue to set.
      Returns:
      This builder for chaining.
    • getMandatory

      public boolean getMandatory()
       If true, the default value is unset and a value is needed for this
       parameter. This might be false even if defaultValue is empty in the case of
       special parameter such as *args and **kwargs"
       
      bool mandatory = 4;
      Specified by:
      getMandatory in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The mandatory.
    • setMandatory

      public StardocOutputProtos.FunctionParamInfo.Builder setMandatory(boolean value)
       If true, the default value is unset and a value is needed for this
       parameter. This might be false even if defaultValue is empty in the case of
       special parameter such as *args and **kwargs"
       
      bool mandatory = 4;
      Parameters:
      value - The mandatory to set.
      Returns:
      This builder for chaining.
    • clearMandatory

       If true, the default value is unset and a value is needed for this
       parameter. This might be false even if defaultValue is empty in the case of
       special parameter such as *args and **kwargs"
       
      bool mandatory = 4;
      Returns:
      This builder for chaining.
    • getRoleValue

      public int getRoleValue()
       The parameter's syntactic role.
       
      .stardoc_output.FunctionParamRole role = 5;
      Specified by:
      getRoleValue in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The enum numeric value on the wire for role.
    • setRoleValue

      public StardocOutputProtos.FunctionParamInfo.Builder setRoleValue(int value)
       The parameter's syntactic role.
       
      .stardoc_output.FunctionParamRole role = 5;
      Parameters:
      value - The enum numeric value on the wire for role to set.
      Returns:
      This builder for chaining.
    • getRole

       The parameter's syntactic role.
       
      .stardoc_output.FunctionParamRole role = 5;
      Specified by:
      getRole in interface StardocOutputProtos.FunctionParamInfoOrBuilder
      Returns:
      The role.
    • setRole

       The parameter's syntactic role.
       
      .stardoc_output.FunctionParamRole role = 5;
      Parameters:
      value - The role to set.
      Returns:
      This builder for chaining.
    • clearRole

       The parameter's syntactic role.
       
      .stardoc_output.FunctionParamRole role = 5;
      Returns:
      This builder for chaining.