Package com.buildless.projects
Class Project.Draft.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
com.buildless.projects.Project.Draft.Builder
- All Implemented Interfaces:
Project.DraftOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
Project.Draft
public static final class Project.Draft.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
implements Project.DraftOrBuilder
## Project Draft Models the structure of a project when it is in a draft state. This is used when creating a new project, to apply validation logic and property structure (for example, input-only fields). Project drafts are submitted to the appropriate API endpoint under an authorized user's account. The account scope selected by the user is used when creating the project.Protobuf type
buildless.projects.Project.Draft-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) "Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies the current user as the owner for the new project.Draft of active settings which should apply to the new project.Specifies the name of the tenant organization which should own the new project.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users.com.google.protobuf.ByteString"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users.getName()"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API.com.google.protobuf.ByteString"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API.booleangetSelf()Specifies the current user as the owner for the new project.Draft of active settings which should apply to the new project.Draft of active settings which should apply to the new project.Draft of active settings which should apply to the new project.Specifies the name of the tenant organization which should own the new project.com.google.protobuf.ByteStringSpecifies the name of the tenant organization which should own the new project.booleanhasSelf()Specifies the current user as the owner for the new project.booleanDraft of active settings which should apply to the new project.booleanSpecifies the name of the tenant organization which should own the new project.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Project.Draft other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Draft of active settings which should apply to the new project.final Project.Draft.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDisplayName(String value) "Display name" to show as a label for the new project within UIs and when presenting lists of projects to users.setDisplayNameBytes(com.google.protobuf.ByteString value) "Display name" to show as a label for the new project within UIs and when presenting lists of projects to users."Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API.setNameBytes(com.google.protobuf.ByteString value) "Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelf(boolean value) Specifies the current user as the owner for the new project.Draft of active settings which should apply to the new project.setSettings(Project.Settings.Draft.Builder builderForValue) Draft of active settings which should apply to the new project.Specifies the name of the tenant organization which should own the new project.setTenantBytes(com.google.protobuf.ByteString value) Specifies the name of the tenant organization which should own the new project.final Project.Draft.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, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.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<Project.Draft.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<Project.Draft.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
-
setField
public Project.Draft.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<Project.Draft.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
-
setRepeatedField
public Project.Draft.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<Project.Draft.Builder>
-
addRepeatedField
public Project.Draft.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<Project.Draft.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Project.Draft.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
-
mergeFrom
public Project.Draft.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<Project.Draft.Builder>- Throws:
IOException
-
getOwnerCase
- Specified by:
getOwnerCasein interfaceProject.DraftOrBuilder
-
clearOwner
-
hasSelf
public boolean hasSelf()Specifies the current user as the owner for the new project.
bool self = 1 [json_name = "self", (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasSelfin interfaceProject.DraftOrBuilder- Returns:
- Whether the self field is set.
-
getSelf
public boolean getSelf()Specifies the current user as the owner for the new project.
bool self = 1 [json_name = "self", (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getSelfin interfaceProject.DraftOrBuilder- Returns:
- The self.
-
setSelf
Specifies the current user as the owner for the new project.
bool self = 1 [json_name = "self", (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The self to set.- Returns:
- This builder for chaining.
-
clearSelf
Specifies the current user as the owner for the new project.
bool self = 1 [json_name = "self", (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasTenant
public boolean hasTenant()Specifies the name of the tenant organization which should own the new project.
string tenant = 2 [json_name = "tenant", (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Specified by:
hasTenantin interfaceProject.DraftOrBuilder- Returns:
- Whether the tenant field is set.
-
getTenant
Specifies the name of the tenant organization which should own the new project.
string tenant = 2 [json_name = "tenant", (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Specified by:
getTenantin interfaceProject.DraftOrBuilder- Returns:
- The tenant.
-
getTenantBytes
public com.google.protobuf.ByteString getTenantBytes()Specifies the name of the tenant organization which should own the new project.
string tenant = 2 [json_name = "tenant", (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Specified by:
getTenantBytesin interfaceProject.DraftOrBuilder- Returns:
- The bytes for tenant.
-
setTenant
Specifies the name of the tenant organization which should own the new project.
string tenant = 2 [json_name = "tenant", (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Parameters:
value- The tenant to set.- Returns:
- This builder for chaining.
-
clearTenant
Specifies the name of the tenant organization which should own the new project.
string tenant = 2 [json_name = "tenant", (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setTenantBytes
Specifies the name of the tenant organization which should own the new project.
string tenant = 2 [json_name = "tenant", (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Parameters:
value- The bytes for tenant to set.- Returns:
- This builder for chaining.
-
getName
"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API. This name must be unique within the owning account scope.
string name = 3 [json_name = "name", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Specified by:
getNamein interfaceProject.DraftOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API. This name must be unique within the owning account scope.
string name = 3 [json_name = "name", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceProject.DraftOrBuilder- Returns:
- The bytes for name.
-
setName
"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API. This name must be unique within the owning account scope.
string name = 3 [json_name = "name", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API. This name must be unique within the owning account scope.
string name = 3 [json_name = "name", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
"Short name" to specify for a new project; this name will be used by default when referencing the project in configurations, URLs, and over the API. This name must be unique within the owning account scope.
string name = 3 [json_name = "name", (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users. The display name can be changed at any time.
string display_name = 4 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getDisplayNamein interfaceProject.DraftOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users. The display name can be changed at any time.
string display_name = 4 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Specified by:
getDisplayNameBytesin interfaceProject.DraftOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users. The display name can be changed at any time.
string display_name = 4 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users. The display name can be changed at any time.
string display_name = 4 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setDisplayNameBytes
"Display name" to show as a label for the new project within UIs and when presenting lists of projects to users. The display name can be changed at any time.
string display_name = 4 [json_name = "displayName", (.google.api.field_behavior) = OPTIONAL, (.validate.rules) = { ... }- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasSettings
public boolean hasSettings()Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
hasSettingsin interfaceProject.DraftOrBuilder- Returns:
- Whether the settings field is set.
-
getSettings
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getSettingsin interfaceProject.DraftOrBuilder- Returns:
- The settings.
-
setSettings
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
setSettings
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
mergeSettings
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
clearSettings
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
getSettingsBuilder
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... } -
getSettingsOrBuilder
Draft of active settings which should apply to the new project. See the `Settings.Draft` message for more about which fields are supported or required.
.buildless.projects.Project.Settings.Draft settings = 10 [json_name = "settings", (.google.api.field_behavior) = REQUIRED, (.validate.rules) = { ... }- Specified by:
getSettingsOrBuilderin interfaceProject.DraftOrBuilder
-
setUnknownFields
public final Project.Draft.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
-
mergeUnknownFields
public final Project.Draft.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Project.Draft.Builder>
-