Package com.google.cloud.datacatalog.v1
Class DataSource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
-
- com.google.cloud.datacatalog.v1.DataSource.Builder
-
- All Implemented Interfaces:
DataSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataSource
public static final class DataSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder> implements DataSourceOrBuilder
Physical location of an entry.
Protobuf typegoogle.cloud.datacatalog.v1.DataSource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DataSourcebuild()DataSourcebuildPartial()DataSource.Builderclear()DataSource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DataSource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DataSource.BuilderclearProperties()DataSource.BuilderclearResource()Full name of a resource as defined by the service.DataSource.BuilderclearService()Service that physically stores the data.DataSource.BuilderclearSourceEntry()Output only.DataSource.BuilderclearStorageProperties()Detailed properties of the underlying storage.DataSource.Builderclone()DataSourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DataSource.PropertiesCasegetPropertiesCase()StringgetResource()Full name of a resource as defined by the service.com.google.protobuf.ByteStringgetResourceBytes()Full name of a resource as defined by the service.DataSource.ServicegetService()Service that physically stores the data.intgetServiceValue()Service that physically stores the data.StringgetSourceEntry()Output only.com.google.protobuf.ByteStringgetSourceEntryBytes()Output only.StoragePropertiesgetStorageProperties()Detailed properties of the underlying storage.StorageProperties.BuildergetStoragePropertiesBuilder()Detailed properties of the underlying storage.StoragePropertiesOrBuildergetStoragePropertiesOrBuilder()Detailed properties of the underlying storage.booleanhasStorageProperties()Detailed properties of the underlying storage.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DataSource.BuildermergeFrom(DataSource other)DataSource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DataSource.BuildermergeFrom(com.google.protobuf.Message other)DataSource.BuildermergeStorageProperties(StorageProperties value)Detailed properties of the underlying storage.DataSource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DataSource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DataSource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DataSource.BuildersetResource(String value)Full name of a resource as defined by the service.DataSource.BuildersetResourceBytes(com.google.protobuf.ByteString value)Full name of a resource as defined by the service.DataSource.BuildersetService(DataSource.Service value)Service that physically stores the data.DataSource.BuildersetServiceValue(int value)Service that physically stores the data.DataSource.BuildersetSourceEntry(String value)Output only.DataSource.BuildersetSourceEntryBytes(com.google.protobuf.ByteString value)Output only.DataSource.BuildersetStorageProperties(StorageProperties value)Detailed properties of the underlying storage.DataSource.BuildersetStorageProperties(StorageProperties.Builder builderForValue)Detailed properties of the underlying storage.DataSource.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<DataSource.Builder>
-
clear
public DataSource.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<DataSource.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<DataSource.Builder>
-
getDefaultInstanceForType
public DataSource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataSource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataSource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DataSource.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<DataSource.Builder>
-
setField
public DataSource.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<DataSource.Builder>
-
clearField
public DataSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
-
clearOneof
public DataSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
-
setRepeatedField
public DataSource.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<DataSource.Builder>
-
addRepeatedField
public DataSource.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<DataSource.Builder>
-
mergeFrom
public DataSource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataSource.Builder>
-
mergeFrom
public DataSource.Builder mergeFrom(DataSource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
-
mergeFrom
public DataSource.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<DataSource.Builder>- Throws:
IOException
-
getPropertiesCase
public DataSource.PropertiesCase getPropertiesCase()
- Specified by:
getPropertiesCasein interfaceDataSourceOrBuilder
-
clearProperties
public DataSource.Builder clearProperties()
-
getServiceValue
public int getServiceValue()
Service that physically stores the data.
.google.cloud.datacatalog.v1.DataSource.Service service = 1;- Specified by:
getServiceValuein interfaceDataSourceOrBuilder- Returns:
- The enum numeric value on the wire for service.
-
setServiceValue
public DataSource.Builder setServiceValue(int value)
Service that physically stores the data.
.google.cloud.datacatalog.v1.DataSource.Service service = 1;- Parameters:
value- The enum numeric value on the wire for service to set.- Returns:
- This builder for chaining.
-
getService
public DataSource.Service getService()
Service that physically stores the data.
.google.cloud.datacatalog.v1.DataSource.Service service = 1;- Specified by:
getServicein interfaceDataSourceOrBuilder- Returns:
- The service.
-
setService
public DataSource.Builder setService(DataSource.Service value)
Service that physically stores the data.
.google.cloud.datacatalog.v1.DataSource.Service service = 1;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
public DataSource.Builder clearService()
Service that physically stores the data.
.google.cloud.datacatalog.v1.DataSource.Service service = 1;- Returns:
- This builder for chaining.
-
getResource
public String getResource()
Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`string resource = 2;- Specified by:
getResourcein interfaceDataSourceOrBuilder- Returns:
- The resource.
-
getResourceBytes
public com.google.protobuf.ByteString getResourceBytes()
Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`string resource = 2;- Specified by:
getResourceBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for resource.
-
setResource
public DataSource.Builder setResource(String value)
Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`string resource = 2;- Parameters:
value- The resource to set.- Returns:
- This builder for chaining.
-
clearResource
public DataSource.Builder clearResource()
Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`string resource = 2;- Returns:
- This builder for chaining.
-
setResourceBytes
public DataSource.Builder setResourceBytes(com.google.protobuf.ByteString value)
Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`string resource = 2;- Parameters:
value- The bytes for resource to set.- Returns:
- This builder for chaining.
-
getSourceEntry
public String getSourceEntry()
Output only. Data Catalog entry name, if applicable.
string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceEntryin interfaceDataSourceOrBuilder- Returns:
- The sourceEntry.
-
getSourceEntryBytes
public com.google.protobuf.ByteString getSourceEntryBytes()
Output only. Data Catalog entry name, if applicable.
string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceEntryBytesin interfaceDataSourceOrBuilder- Returns:
- The bytes for sourceEntry.
-
setSourceEntry
public DataSource.Builder setSourceEntry(String value)
Output only. Data Catalog entry name, if applicable.
string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The sourceEntry to set.- Returns:
- This builder for chaining.
-
clearSourceEntry
public DataSource.Builder clearSourceEntry()
Output only. Data Catalog entry name, if applicable.
string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setSourceEntryBytes
public DataSource.Builder setSourceEntryBytes(com.google.protobuf.ByteString value)
Output only. Data Catalog entry name, if applicable.
string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for sourceEntry to set.- Returns:
- This builder for chaining.
-
hasStorageProperties
public boolean hasStorageProperties()
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;- Specified by:
hasStoragePropertiesin interfaceDataSourceOrBuilder- Returns:
- Whether the storageProperties field is set.
-
getStorageProperties
public StorageProperties getStorageProperties()
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;- Specified by:
getStoragePropertiesin interfaceDataSourceOrBuilder- Returns:
- The storageProperties.
-
setStorageProperties
public DataSource.Builder setStorageProperties(StorageProperties value)
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
-
setStorageProperties
public DataSource.Builder setStorageProperties(StorageProperties.Builder builderForValue)
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
-
mergeStorageProperties
public DataSource.Builder mergeStorageProperties(StorageProperties value)
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
-
clearStorageProperties
public DataSource.Builder clearStorageProperties()
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
-
getStoragePropertiesBuilder
public StorageProperties.Builder getStoragePropertiesBuilder()
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
-
getStoragePropertiesOrBuilder
public StoragePropertiesOrBuilder getStoragePropertiesOrBuilder()
Detailed properties of the underlying storage.
.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;- Specified by:
getStoragePropertiesOrBuilderin interfaceDataSourceOrBuilder
-
setUnknownFields
public final DataSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
-
mergeUnknownFields
public final DataSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
-
-