Package com.google.cloud.dataplex.v1
Class MetadataFeed.Scope.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Scope.Builder>
com.google.cloud.dataplex.v1.MetadataFeed.Scope.Builder
- All Implemented Interfaces:
MetadataFeed.ScopeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetadataFeed.Scope
public static final class MetadataFeed.Scope.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Scope.Builder>
implements MetadataFeed.ScopeOrBuilder
Scope defines the scope of the metadata feed. Scopes are exclusive. Only one of the scopes can be specified.Protobuf type
google.cloud.dataplex.v1.MetadataFeed.Scope-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntryGroups(Iterable<String> values) Optional.addAllProjects(Iterable<String> values) Optional.addEntryGroups(String value) Optional.addEntryGroupsBytes(com.google.protobuf.ByteString value) Optional.addProjects(String value) Optional.addProjectsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEntryGroups(int index) Optional.com.google.protobuf.ByteStringgetEntryGroupsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanOptional.getProjects(int index) Optional.com.google.protobuf.ByteStringgetProjectsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MetadataFeed.Scope other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEntryGroups(int index, String value) Optional.setOrganizationLevel(boolean value) Optional.setProjects(int index, String value) Optional.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Scope.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<MetadataFeed.Scope.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<MetadataFeed.Scope.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<MetadataFeed.Scope.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetadataFeed.Scope.Builder>
-
mergeFrom
public MetadataFeed.Scope.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<MetadataFeed.Scope.Builder>- Throws:
IOException
-
getOrganizationLevel
public boolean getOrganizationLevel()Optional. Whether the metadata feed is at the organization-level. - If `true`, all changes happened to the entries in the same organization as the feed are published. - If `false`, you must specify a list of projects or a list of entry groups whose entries you want to listen to. The default is `false`.
bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOrganizationLevelin interfaceMetadataFeed.ScopeOrBuilder- Returns:
- The organizationLevel.
-
setOrganizationLevel
Optional. Whether the metadata feed is at the organization-level. - If `true`, all changes happened to the entries in the same organization as the feed are published. - If `false`, you must specify a list of projects or a list of entry groups whose entries you want to listen to. The default is `false`.
bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The organizationLevel to set.- Returns:
- This builder for chaining.
-
clearOrganizationLevel
Optional. Whether the metadata feed is at the organization-level. - If `true`, all changes happened to the entries in the same organization as the feed are published. - If `false`, you must specify a list of projects or a list of entry groups whose entries you want to listen to. The default is `false`.
bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getProjectsList
public com.google.protobuf.ProtocolStringList getProjectsList()Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getProjectsListin interfaceMetadataFeed.ScopeOrBuilder- Returns:
- A list containing the projects.
-
getProjectsCount
public int getProjectsCount()Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getProjectsCountin interfaceMetadataFeed.ScopeOrBuilder- Returns:
- The count of projects.
-
getProjects
Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getProjectsin interfaceMetadataFeed.ScopeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The projects at the given index.
-
getProjectsBytes
public com.google.protobuf.ByteString getProjectsBytes(int index) Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getProjectsBytesin interfaceMetadataFeed.ScopeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the projects at the given index.
-
setProjects
Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The projects to set.- Returns:
- This builder for chaining.
-
addProjects
Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The projects to add.- Returns:
- This builder for chaining.
-
addAllProjects
Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
values- The projects to add.- Returns:
- This builder for chaining.
-
clearProjects
Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addProjectsBytes
Optional. The projects whose entries you want to listen to. Must be in the same organization as the feed. Must be in the format: `projects/{project_id_or_number}`.repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the projects to add.- Returns:
- This builder for chaining.
-
getEntryGroupsList
public com.google.protobuf.ProtocolStringList getEntryGroupsList()Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getEntryGroupsListin interfaceMetadataFeed.ScopeOrBuilder- Returns:
- A list containing the entryGroups.
-
getEntryGroupsCount
public int getEntryGroupsCount()Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getEntryGroupsCountin interfaceMetadataFeed.ScopeOrBuilder- Returns:
- The count of entryGroups.
-
getEntryGroups
Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getEntryGroupsin interfaceMetadataFeed.ScopeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The entryGroups at the given index.
-
getEntryGroupsBytes
public com.google.protobuf.ByteString getEntryGroupsBytes(int index) Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getEntryGroupsBytesin interfaceMetadataFeed.ScopeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the entryGroups at the given index.
-
setEntryGroups
Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The entryGroups to set.- Returns:
- This builder for chaining.
-
addEntryGroups
Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The entryGroups to add.- Returns:
- This builder for chaining.
-
addAllEntryGroups
Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
values- The entryGroups to add.- Returns:
- This builder for chaining.
-
clearEntryGroups
Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addEntryGroupsBytes
Optional. The entry groups whose entries you want to listen to. Must be in the format: `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the entryGroups to add.- Returns:
- This builder for chaining.
-