Class CreateFunctionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateFunctionRequest.Builder>
com.google.cloud.functions.v2.CreateFunctionRequest.Builder
All Implemented Interfaces:
CreateFunctionRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateFunctionRequest

public static final class CreateFunctionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateFunctionRequest.Builder> implements CreateFunctionRequestOrBuilder
 Request for the `CreateFunction` method.
 
Protobuf type google.cloud.functions.v2.CreateFunctionRequest
  • 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<CreateFunctionRequest.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<CreateFunctionRequest.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<CreateFunctionRequest.Builder>
    • getDefaultInstanceForType

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

      public CreateFunctionRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateFunctionRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateFunctionRequest.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<CreateFunctionRequest.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<CreateFunctionRequest.Builder>
    • mergeFrom

      public CreateFunctionRequest.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<CreateFunctionRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The project and location in which the function should be created,
       specified in the format `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateFunctionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project and location in which the function should be created,
       specified in the format `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateFunctionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateFunctionRequest.Builder setParent(String value)
       Required. The project and location in which the function should be created,
       specified in the format `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateFunctionRequest.Builder clearParent()
       Required. The project and location in which the function should be created,
       specified in the format `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateFunctionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project and location in which the function should be created,
       specified in the format `projects/*/locations/*`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasFunction

      public boolean hasFunction()
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFunction in interface CreateFunctionRequestOrBuilder
      Returns:
      Whether the function field is set.
    • getFunction

      public Function getFunction()
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFunction in interface CreateFunctionRequestOrBuilder
      Returns:
      The function.
    • setFunction

      public CreateFunctionRequest.Builder setFunction(Function value)
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
    • setFunction

      public CreateFunctionRequest.Builder setFunction(Function.Builder builderForValue)
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeFunction

      public CreateFunctionRequest.Builder mergeFunction(Function value)
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearFunction

      public CreateFunctionRequest.Builder clearFunction()
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
    • getFunctionBuilder

      public Function.Builder getFunctionBuilder()
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
    • getFunctionOrBuilder

      public FunctionOrBuilder getFunctionOrBuilder()
       Required. Function to be created.
       
      .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFunctionOrBuilder in interface CreateFunctionRequestOrBuilder
    • getFunctionId

      public String getFunctionId()
       The ID to use for the function, which will become the final component of
       the function's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string function_id = 3;
      Specified by:
      getFunctionId in interface CreateFunctionRequestOrBuilder
      Returns:
      The functionId.
    • getFunctionIdBytes

      public com.google.protobuf.ByteString getFunctionIdBytes()
       The ID to use for the function, which will become the final component of
       the function's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string function_id = 3;
      Specified by:
      getFunctionIdBytes in interface CreateFunctionRequestOrBuilder
      Returns:
      The bytes for functionId.
    • setFunctionId

      public CreateFunctionRequest.Builder setFunctionId(String value)
       The ID to use for the function, which will become the final component of
       the function's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string function_id = 3;
      Parameters:
      value - The functionId to set.
      Returns:
      This builder for chaining.
    • clearFunctionId

      public CreateFunctionRequest.Builder clearFunctionId()
       The ID to use for the function, which will become the final component of
       the function's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string function_id = 3;
      Returns:
      This builder for chaining.
    • setFunctionIdBytes

      public CreateFunctionRequest.Builder setFunctionIdBytes(com.google.protobuf.ByteString value)
       The ID to use for the function, which will become the final component of
       the function's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string function_id = 3;
      Parameters:
      value - The bytes for functionId to set.
      Returns:
      This builder for chaining.