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.v1.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.v1.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
    • getLocation

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

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

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

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

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

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

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

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

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

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

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

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

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