Package com.google.cloud.vmmigration.v1
Class CreateSourceRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
- com.google.cloud.vmmigration.v1.CreateSourceRequest.Builder
-
- All Implemented Interfaces:
CreateSourceRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CreateSourceRequest
public static final class CreateSourceRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder> implements CreateSourceRequestOrBuilder
Request message for 'CreateSource' request.
Protobuf typegoogle.cloud.vmmigration.v1.CreateSourceRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSourceRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CreateSourceRequestbuild()CreateSourceRequestbuildPartial()CreateSourceRequest.Builderclear()CreateSourceRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CreateSourceRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CreateSourceRequest.BuilderclearParent()Required.CreateSourceRequest.BuilderclearRequestId()A request ID to identify requests.CreateSourceRequest.BuilderclearSource()Required.CreateSourceRequest.BuilderclearSourceId()Required.CreateSourceRequest.Builderclone()CreateSourceRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.StringgetRequestId()A request ID to identify requests.com.google.protobuf.ByteStringgetRequestIdBytes()A request ID to identify requests.SourcegetSource()Required.Source.BuildergetSourceBuilder()Required.StringgetSourceId()Required.com.google.protobuf.ByteStringgetSourceIdBytes()Required.SourceOrBuildergetSourceOrBuilder()Required.booleanhasSource()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CreateSourceRequest.BuildermergeFrom(CreateSourceRequest other)CreateSourceRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CreateSourceRequest.BuildermergeFrom(com.google.protobuf.Message other)CreateSourceRequest.BuildermergeSource(Source value)Required.CreateSourceRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CreateSourceRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CreateSourceRequest.BuildersetParent(String value)Required.CreateSourceRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Required.CreateSourceRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CreateSourceRequest.BuildersetRequestId(String value)A request ID to identify requests.CreateSourceRequest.BuildersetRequestIdBytes(com.google.protobuf.ByteString value)A request ID to identify requests.CreateSourceRequest.BuildersetSource(Source value)Required.CreateSourceRequest.BuildersetSource(Source.Builder builderForValue)Required.CreateSourceRequest.BuildersetSourceId(String value)Required.CreateSourceRequest.BuildersetSourceIdBytes(com.google.protobuf.ByteString value)Required.CreateSourceRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
clear
public CreateSourceRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
getDefaultInstanceForType
public CreateSourceRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateSourceRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateSourceRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateSourceRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
setField
public CreateSourceRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
clearField
public CreateSourceRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
clearOneof
public CreateSourceRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
setRepeatedField
public CreateSourceRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
addRepeatedField
public CreateSourceRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
mergeFrom
public CreateSourceRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateSourceRequest.Builder>
-
mergeFrom
public CreateSourceRequest.Builder mergeFrom(CreateSourceRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
mergeFrom
public CreateSourceRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateSourceRequest.Builder>- Throws:
IOException
-
getParent
public String getParent()
Required. The Source's parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceCreateSourceRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The Source's parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceCreateSourceRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
public CreateSourceRequest.Builder setParent(String value)
Required. The Source's parent.
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 CreateSourceRequest.Builder clearParent()
Required. The Source's parent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
public CreateSourceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The Source's parent.
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.
-
getSourceId
public String getSourceId()
Required. The source identifier.
string source_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceIdin interfaceCreateSourceRequestOrBuilder- Returns:
- The sourceId.
-
getSourceIdBytes
public com.google.protobuf.ByteString getSourceIdBytes()
Required. The source identifier.
string source_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceIdBytesin interfaceCreateSourceRequestOrBuilder- Returns:
- The bytes for sourceId.
-
setSourceId
public CreateSourceRequest.Builder setSourceId(String value)
Required. The source identifier.
string source_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The sourceId to set.- Returns:
- This builder for chaining.
-
clearSourceId
public CreateSourceRequest.Builder clearSourceId()
Required. The source identifier.
string source_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSourceIdBytes
public CreateSourceRequest.Builder setSourceIdBytes(com.google.protobuf.ByteString value)
Required. The source identifier.
string source_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for sourceId to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasSourcein interfaceCreateSourceRequestOrBuilder- Returns:
- Whether the source field is set.
-
getSource
public Source getSource()
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourcein interfaceCreateSourceRequestOrBuilder- Returns:
- The source.
-
setSource
public CreateSourceRequest.Builder setSource(Source value)
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];
-
setSource
public CreateSourceRequest.Builder setSource(Source.Builder builderForValue)
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];
-
mergeSource
public CreateSourceRequest.Builder mergeSource(Source value)
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];
-
clearSource
public CreateSourceRequest.Builder clearSource()
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];
-
getSourceBuilder
public Source.Builder getSourceBuilder()
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];
-
getSourceOrBuilder
public SourceOrBuilder getSourceOrBuilder()
Required. The create request body.
.google.cloud.vmmigration.v1.Source source = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceOrBuilderin interfaceCreateSourceRequestOrBuilder
-
getRequestId
public String getRequestId()
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4;- Specified by:
getRequestIdin interfaceCreateSourceRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4;- Specified by:
getRequestIdBytesin interfaceCreateSourceRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
public CreateSourceRequest.Builder setRequestId(String value)
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4;- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public CreateSourceRequest.Builder clearRequestId()
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4;- Returns:
- This builder for chaining.
-
setRequestIdBytes
public CreateSourceRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4;- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateSourceRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
mergeUnknownFields
public final CreateSourceRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateSourceRequest.Builder>
-
-