Class RolesAndApisConfig.Builder (0.3.0)

public static final class RolesAndApisConfig.Builder extends GeneratedMessage.Builder<RolesAndApisConfig.Builder> implements RolesAndApisConfigOrBuilder

Represents configurations required within a specific project to deploy the application.

Protobuf type google.cloud.designcenter.v1.RolesAndApisConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllApis(Iterable<? extends ApiInfo> values)

public RolesAndApisConfig.Builder addAllApis(Iterable<? extends ApiInfo> values)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.designcenter.v1.ApiInfo>
Returns
Type Description
RolesAndApisConfig.Builder

addAllRoles(Iterable<? extends RoleInfo> values)

public RolesAndApisConfig.Builder addAllRoles(Iterable<? extends RoleInfo> values)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.designcenter.v1.RoleInfo>
Returns
Type Description
RolesAndApisConfig.Builder

addApis(ApiInfo value)

public RolesAndApisConfig.Builder addApis(ApiInfo value)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiInfo
Returns
Type Description
RolesAndApisConfig.Builder

addApis(ApiInfo.Builder builderForValue)

public RolesAndApisConfig.Builder addApis(ApiInfo.Builder builderForValue)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ApiInfo.Builder
Returns
Type Description
RolesAndApisConfig.Builder

addApis(int index, ApiInfo value)

public RolesAndApisConfig.Builder addApis(int index, ApiInfo value)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ApiInfo
Returns
Type Description
RolesAndApisConfig.Builder

addApis(int index, ApiInfo.Builder builderForValue)

public RolesAndApisConfig.Builder addApis(int index, ApiInfo.Builder builderForValue)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ApiInfo.Builder
Returns
Type Description
RolesAndApisConfig.Builder

addApisBuilder()

public ApiInfo.Builder addApisBuilder()

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiInfo.Builder

addApisBuilder(int index)

public ApiInfo.Builder addApisBuilder(int index)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiInfo.Builder

addRoles(RoleInfo value)

public RolesAndApisConfig.Builder addRoles(RoleInfo value)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RoleInfo
Returns
Type Description
RolesAndApisConfig.Builder

addRoles(RoleInfo.Builder builderForValue)

public RolesAndApisConfig.Builder addRoles(RoleInfo.Builder builderForValue)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RoleInfo.Builder
Returns
Type Description
RolesAndApisConfig.Builder

addRoles(int index, RoleInfo value)

public RolesAndApisConfig.Builder addRoles(int index, RoleInfo value)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value RoleInfo
Returns
Type Description
RolesAndApisConfig.Builder

addRoles(int index, RoleInfo.Builder builderForValue)

public RolesAndApisConfig.Builder addRoles(int index, RoleInfo.Builder builderForValue)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue RoleInfo.Builder
Returns
Type Description
RolesAndApisConfig.Builder

addRolesBuilder()

public RoleInfo.Builder addRolesBuilder()

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RoleInfo.Builder

addRolesBuilder(int index)

public RoleInfo.Builder addRolesBuilder(int index)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RoleInfo.Builder

build()

public RolesAndApisConfig build()
Returns
Type Description
RolesAndApisConfig

buildPartial()

public RolesAndApisConfig buildPartial()
Returns
Type Description
RolesAndApisConfig

clear()

public RolesAndApisConfig.Builder clear()
Returns
Type Description
RolesAndApisConfig.Builder
Overrides

clearApis()

public RolesAndApisConfig.Builder clearApis()

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolesAndApisConfig.Builder

clearProjectId()

public RolesAndApisConfig.Builder clearProjectId()

Required. The project ID to which these configurations apply.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RolesAndApisConfig.Builder

This builder for chaining.

clearRoles()

public RolesAndApisConfig.Builder clearRoles()

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolesAndApisConfig.Builder

getApis(int index)

public ApiInfo getApis(int index)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiInfo

getApisBuilder(int index)

public ApiInfo.Builder getApisBuilder(int index)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiInfo.Builder

getApisBuilderList()

public List<ApiInfo.Builder> getApisBuilderList()

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getApisCount()

public int getApisCount()

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getApisList()

public List<ApiInfo> getApisList()

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ApiInfo>

getApisOrBuilder(int index)

public ApiInfoOrBuilder getApisOrBuilder(int index)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiInfoOrBuilder

getApisOrBuilderList()

public List<? extends ApiInfoOrBuilder> getApisOrBuilderList()

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.designcenter.v1.ApiInfoOrBuilder>

getDefaultInstanceForType()

public RolesAndApisConfig getDefaultInstanceForType()
Returns
Type Description
RolesAndApisConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProjectId()

public String getProjectId()

Required. The project ID to which these configurations apply.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The project ID to which these configurations apply.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getRoles(int index)

public RoleInfo getRoles(int index)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RoleInfo

getRolesBuilder(int index)

public RoleInfo.Builder getRolesBuilder(int index)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RoleInfo.Builder

getRolesBuilderList()

public List<RoleInfo.Builder> getRolesBuilderList()

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getRolesCount()

public int getRolesCount()

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getRolesList()

public List<RoleInfo> getRolesList()

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<RoleInfo>

getRolesOrBuilder(int index)

public RoleInfoOrBuilder getRolesOrBuilder(int index)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RoleInfoOrBuilder

getRolesOrBuilderList()

public List<? extends RoleInfoOrBuilder> getRolesOrBuilderList()

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.designcenter.v1.RoleInfoOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RolesAndApisConfig other)

public RolesAndApisConfig.Builder mergeFrom(RolesAndApisConfig other)
Parameter
Name Description
other RolesAndApisConfig
Returns
Type Description
RolesAndApisConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RolesAndApisConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RolesAndApisConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RolesAndApisConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RolesAndApisConfig.Builder
Overrides

removeApis(int index)

public RolesAndApisConfig.Builder removeApis(int index)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RolesAndApisConfig.Builder

removeRoles(int index)

public RolesAndApisConfig.Builder removeRoles(int index)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RolesAndApisConfig.Builder

setApis(int index, ApiInfo value)

public RolesAndApisConfig.Builder setApis(int index, ApiInfo value)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ApiInfo
Returns
Type Description
RolesAndApisConfig.Builder

setApis(int index, ApiInfo.Builder builderForValue)

public RolesAndApisConfig.Builder setApis(int index, ApiInfo.Builder builderForValue)

Optional. APIs that you must enable in this project before you deploy the application, in the form of "*.googleapis.com". The maximum number of APIs allowed is 500.

repeated .google.cloud.designcenter.v1.ApiInfo apis = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ApiInfo.Builder
Returns
Type Description
RolesAndApisConfig.Builder

setProjectId(String value)

public RolesAndApisConfig.Builder setProjectId(String value)

Required. The project ID to which these configurations apply.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
RolesAndApisConfig.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public RolesAndApisConfig.Builder setProjectIdBytes(ByteString value)

Required. The project ID to which these configurations apply.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
RolesAndApisConfig.Builder

This builder for chaining.

setRoles(int index, RoleInfo value)

public RolesAndApisConfig.Builder setRoles(int index, RoleInfo value)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value RoleInfo
Returns
Type Description
RolesAndApisConfig.Builder

setRoles(int index, RoleInfo.Builder builderForValue)

public RolesAndApisConfig.Builder setRoles(int index, RoleInfo.Builder builderForValue)

Optional. IAM roles that the deployment service account needs to deploy the application within this project. Each role must be a valid IAM role name, such as roles/editor. The maximum number of roles allowed is 500.

repeated .google.cloud.designcenter.v1.RoleInfo roles = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue RoleInfo.Builder
Returns
Type Description
RolesAndApisConfig.Builder