Class CreateDataSourceRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CreateDataSourceRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
ai.pipestream.connector.intake.v1.CreateDataSourceRequest.Builder
- All Implemented Interfaces:
CreateDataSourceRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
CreateDataSourceRequest
public static final class CreateDataSourceRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
implements CreateDataSourceRequestOrBuilder
Request to create a new datasource for an account.Protobuf type
ai.pipestream.connector.intake.v1.CreateDataSourceRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Account that will own this datasource.Connector type to bind (e.g., "s3", "file-crawler").Drive name for document storage (must exist, created via FilesystemService).Maximum file size allowed in bytes (0 = no limit).Human-readable datasource name.Rate limit for uploads per minute (0 = no limit).booleancontainsMetadata(String key) Metadata to apply to all documents from this datasource.Account that will own this datasource.com.google.protobuf.ByteStringAccount that will own this datasource.Connector type to bind (e.g., "s3", "file-crawler").com.google.protobuf.ByteStringConnector type to bind (e.g., "s3", "file-crawler").static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDrive name for document storage (must exist, created via FilesystemService).com.google.protobuf.ByteStringDrive name for document storage (must exist, created via FilesystemService).longMaximum file size allowed in bytes (0 = no limit).Deprecated.intMetadata to apply to all documents from this datasource.Metadata to apply to all documents from this datasource.getMetadataOrDefault(String key, String defaultValue) Metadata to apply to all documents from this datasource.getMetadataOrThrow(String key) Metadata to apply to all documents from this datasource.Deprecated.getName()Human-readable datasource name.com.google.protobuf.ByteStringHuman-readable datasource name.longRate limit for uploads per minute (0 = no limit).protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(CreateDataSourceRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllMetadata(Map<String, String> values) Metadata to apply to all documents from this datasource.putMetadata(String key, String value) Metadata to apply to all documents from this datasource.removeMetadata(String key) Metadata to apply to all documents from this datasource.setAccountId(String value) Account that will own this datasource.setAccountIdBytes(com.google.protobuf.ByteString value) Account that will own this datasource.setConnectorId(String value) Connector type to bind (e.g., "s3", "file-crawler").setConnectorIdBytes(com.google.protobuf.ByteString value) Connector type to bind (e.g., "s3", "file-crawler").setDriveName(String value) Drive name for document storage (must exist, created via FilesystemService).setDriveNameBytes(com.google.protobuf.ByteString value) Drive name for document storage (must exist, created via FilesystemService).setMaxFileSize(long value) Maximum file size allowed in bytes (0 = no limit).Human-readable datasource name.setNameBytes(com.google.protobuf.ByteString value) Human-readable datasource name.setRateLimitPerMinute(long value) Rate limit for uploads per minute (0 = no limit).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.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.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateDataSourceRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CreateDataSourceRequest.Builder>
-
mergeFrom
public CreateDataSourceRequest.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<CreateDataSourceRequest.Builder>- Throws:
IOException
-
getAccountId
Account that will own this datasource.
string account_id = 1 [json_name = "accountId"];- Specified by:
getAccountIdin interfaceCreateDataSourceRequestOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Account that will own this datasource.
string account_id = 1 [json_name = "accountId"];- Specified by:
getAccountIdBytesin interfaceCreateDataSourceRequestOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Account that will own this datasource.
string account_id = 1 [json_name = "accountId"];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Account that will own this datasource.
string account_id = 1 [json_name = "accountId"];- Returns:
- This builder for chaining.
-
setAccountIdBytes
Account that will own this datasource.
string account_id = 1 [json_name = "accountId"];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getConnectorId
Connector type to bind (e.g., "s3", "file-crawler").
string connector_id = 2 [json_name = "connectorId"];- Specified by:
getConnectorIdin interfaceCreateDataSourceRequestOrBuilder- Returns:
- The connectorId.
-
getConnectorIdBytes
public com.google.protobuf.ByteString getConnectorIdBytes()Connector type to bind (e.g., "s3", "file-crawler").
string connector_id = 2 [json_name = "connectorId"];- Specified by:
getConnectorIdBytesin interfaceCreateDataSourceRequestOrBuilder- Returns:
- The bytes for connectorId.
-
setConnectorId
Connector type to bind (e.g., "s3", "file-crawler").
string connector_id = 2 [json_name = "connectorId"];- Parameters:
value- The connectorId to set.- Returns:
- This builder for chaining.
-
clearConnectorId
Connector type to bind (e.g., "s3", "file-crawler").
string connector_id = 2 [json_name = "connectorId"];- Returns:
- This builder for chaining.
-
setConnectorIdBytes
Connector type to bind (e.g., "s3", "file-crawler").
string connector_id = 2 [json_name = "connectorId"];- Parameters:
value- The bytes for connectorId to set.- Returns:
- This builder for chaining.
-
getName
Human-readable datasource name.
string name = 3 [json_name = "name"];- Specified by:
getNamein interfaceCreateDataSourceRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Human-readable datasource name.
string name = 3 [json_name = "name"];- Specified by:
getNameBytesin interfaceCreateDataSourceRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Human-readable datasource name.
string name = 3 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Human-readable datasource name.
string name = 3 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
Human-readable datasource name.
string name = 3 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDriveName
Drive name for document storage (must exist, created via FilesystemService).
string drive_name = 4 [json_name = "driveName"];- Specified by:
getDriveNamein interfaceCreateDataSourceRequestOrBuilder- Returns:
- The driveName.
-
getDriveNameBytes
public com.google.protobuf.ByteString getDriveNameBytes()Drive name for document storage (must exist, created via FilesystemService).
string drive_name = 4 [json_name = "driveName"];- Specified by:
getDriveNameBytesin interfaceCreateDataSourceRequestOrBuilder- Returns:
- The bytes for driveName.
-
setDriveName
Drive name for document storage (must exist, created via FilesystemService).
string drive_name = 4 [json_name = "driveName"];- Parameters:
value- The driveName to set.- Returns:
- This builder for chaining.
-
clearDriveName
Drive name for document storage (must exist, created via FilesystemService).
string drive_name = 4 [json_name = "driveName"];- Returns:
- This builder for chaining.
-
setDriveNameBytes
Drive name for document storage (must exist, created via FilesystemService).
string drive_name = 4 [json_name = "driveName"];- Parameters:
value- The bytes for driveName to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:CreateDataSourceRequestOrBuilderMetadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataCountin interfaceCreateDataSourceRequestOrBuilder
-
containsMetadata
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
containsMetadatain interfaceCreateDataSourceRequestOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceCreateDataSourceRequestOrBuilder
-
getMetadataMap
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataMapin interfaceCreateDataSourceRequestOrBuilder
-
getMetadataOrDefault
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataOrDefaultin interfaceCreateDataSourceRequestOrBuilder
-
getMetadataOrThrow
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"];- Specified by:
getMetadataOrThrowin interfaceCreateDataSourceRequestOrBuilder
-
clearMetadata
-
removeMetadata
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"]; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"]; -
putAllMetadata
Metadata to apply to all documents from this datasource.
map<string, string> metadata = 5 [json_name = "metadata"]; -
getMaxFileSize
public long getMaxFileSize()Maximum file size allowed in bytes (0 = no limit).
int64 max_file_size = 6 [json_name = "maxFileSize"];- Specified by:
getMaxFileSizein interfaceCreateDataSourceRequestOrBuilder- Returns:
- The maxFileSize.
-
setMaxFileSize
Maximum file size allowed in bytes (0 = no limit).
int64 max_file_size = 6 [json_name = "maxFileSize"];- Parameters:
value- The maxFileSize to set.- Returns:
- This builder for chaining.
-
clearMaxFileSize
Maximum file size allowed in bytes (0 = no limit).
int64 max_file_size = 6 [json_name = "maxFileSize"];- Returns:
- This builder for chaining.
-
getRateLimitPerMinute
public long getRateLimitPerMinute()Rate limit for uploads per minute (0 = no limit).
int64 rate_limit_per_minute = 7 [json_name = "rateLimitPerMinute"];- Specified by:
getRateLimitPerMinutein interfaceCreateDataSourceRequestOrBuilder- Returns:
- The rateLimitPerMinute.
-
setRateLimitPerMinute
Rate limit for uploads per minute (0 = no limit).
int64 rate_limit_per_minute = 7 [json_name = "rateLimitPerMinute"];- Parameters:
value- The rateLimitPerMinute to set.- Returns:
- This builder for chaining.
-
clearRateLimitPerMinute
Rate limit for uploads per minute (0 = no limit).
int64 rate_limit_per_minute = 7 [json_name = "rateLimitPerMinute"];- Returns:
- This builder for chaining.
-