Class CreateFunctionRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
- com.google.cloud.functions.v2alpha.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.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder> implements CreateFunctionRequestOrBuilder
Request for the `CreateFunction` method.
Protobuf typegoogle.cloud.functions.v2alpha.CreateFunctionRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFunctionRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CreateFunctionRequest
build()
CreateFunctionRequest
buildPartial()
CreateFunctionRequest.Builder
clear()
CreateFunctionRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CreateFunctionRequest.Builder
clearFunction()
Required.CreateFunctionRequest.Builder
clearFunctionId()
The ID to use for the function, which will become the final component of the function's resource name.CreateFunctionRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CreateFunctionRequest.Builder
clearParent()
Required.CreateFunctionRequest.Builder
clone()
CreateFunctionRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Function
getFunction()
Required.Function.Builder
getFunctionBuilder()
Required.String
getFunctionId()
The ID to use for the function, which will become the final component of the function's resource name.com.google.protobuf.ByteString
getFunctionIdBytes()
The ID to use for the function, which will become the final component of the function's resource name.FunctionOrBuilder
getFunctionOrBuilder()
Required.String
getParent()
Required.com.google.protobuf.ByteString
getParentBytes()
Required.boolean
hasFunction()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CreateFunctionRequest.Builder
mergeFrom(CreateFunctionRequest other)
CreateFunctionRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CreateFunctionRequest.Builder
mergeFrom(com.google.protobuf.Message other)
CreateFunctionRequest.Builder
mergeFunction(Function value)
Required.CreateFunctionRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CreateFunctionRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CreateFunctionRequest.Builder
setFunction(Function value)
Required.CreateFunctionRequest.Builder
setFunction(Function.Builder builderForValue)
Required.CreateFunctionRequest.Builder
setFunctionId(String value)
The ID to use for the function, which will become the final component of the function's resource name.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.CreateFunctionRequest.Builder
setParent(String value)
Required.CreateFunctionRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Required.CreateFunctionRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CreateFunctionRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
clear
public CreateFunctionRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
getDefaultInstanceForType
public CreateFunctionRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateFunctionRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateFunctionRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateFunctionRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
setField
public CreateFunctionRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
clearField
public CreateFunctionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
clearOneof
public CreateFunctionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
setRepeatedField
public CreateFunctionRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
addRepeatedField
public CreateFunctionRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
mergeFrom
public CreateFunctionRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateFunctionRequest.Builder>
-
mergeFrom
public CreateFunctionRequest.Builder mergeFrom(CreateFunctionRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
mergeFrom
public CreateFunctionRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceCreateFunctionRequestOrBuilder
- 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 interfaceCreateFunctionRequestOrBuilder
- 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.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasFunction
in interfaceCreateFunctionRequestOrBuilder
- Returns:
- Whether the function field is set.
-
getFunction
public Function getFunction()
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFunction
in interfaceCreateFunctionRequestOrBuilder
- Returns:
- The function.
-
setFunction
public CreateFunctionRequest.Builder setFunction(Function value)
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
-
setFunction
public CreateFunctionRequest.Builder setFunction(Function.Builder builderForValue)
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
-
mergeFunction
public CreateFunctionRequest.Builder mergeFunction(Function value)
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearFunction
public CreateFunctionRequest.Builder clearFunction()
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
-
getFunctionBuilder
public Function.Builder getFunctionBuilder()
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
-
getFunctionOrBuilder
public FunctionOrBuilder getFunctionOrBuilder()
Required. Function to be created.
.google.cloud.functions.v2alpha.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFunctionOrBuilder
in interfaceCreateFunctionRequestOrBuilder
-
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 interfaceCreateFunctionRequestOrBuilder
- 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 interfaceCreateFunctionRequestOrBuilder
- 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.
-
setUnknownFields
public final CreateFunctionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
mergeUnknownFields
public final CreateFunctionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateFunctionRequest.Builder>
-
-