Class Deployment.Builder (2.52.0)

public static final class Deployment.Builder extends GeneratedMessageV3.Builder<Deployment.Builder> implements DeploymentOrBuilder

A Google Workspace Add-on deployment

Protobuf type google.cloud.gsuiteaddons.v1.Deployment

Implements

DeploymentOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllOauthScopes(Iterable<String> values)

public Deployment.Builder addAllOauthScopes(Iterable<String> values)

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Parameter
Name Description
values Iterable<String>

The oauthScopes to add.

Returns
Type Description
Deployment.Builder

This builder for chaining.

addOauthScopes(String value)

public Deployment.Builder addOauthScopes(String value)

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Parameter
Name Description
value String

The oauthScopes to add.

Returns
Type Description
Deployment.Builder

This builder for chaining.

addOauthScopesBytes(ByteString value)

public Deployment.Builder addOauthScopesBytes(ByteString value)

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Parameter
Name Description
value ByteString

The bytes of the oauthScopes to add.

Returns
Type Description
Deployment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Deployment.Builder
Overrides

build()

public Deployment build()
Returns
Type Description
Deployment

buildPartial()

public Deployment buildPartial()
Returns
Type Description
Deployment

clear()

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

clearAddOns()

public Deployment.Builder clearAddOns()

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Returns
Type Description
Deployment.Builder

clearEtag()

public Deployment.Builder clearEtag()

This value is computed by the server based on the version of the deployment in storage, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Returns
Type Description
Deployment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Deployment.Builder
Overrides

clearName()

public Deployment.Builder clearName()

The deployment resource name. Example: projects/123/deployments/my_deployment.

string name = 1;

Returns
Type Description
Deployment.Builder

This builder for chaining.

clearOauthScopes()

public Deployment.Builder clearOauthScopes()

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Returns
Type Description
Deployment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Deployment.Builder
Overrides

clone()

public Deployment.Builder clone()
Returns
Type Description
Deployment.Builder
Overrides

getAddOns()

public AddOns getAddOns()

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Returns
Type Description
AddOns

The addOns.

getAddOnsBuilder()

public AddOns.Builder getAddOnsBuilder()

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Returns
Type Description
AddOns.Builder

getAddOnsOrBuilder()

public AddOnsOrBuilder getAddOnsOrBuilder()

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Returns
Type Description
AddOnsOrBuilder

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
Type Description
Deployment

getDescriptorForType()

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

getEtag()

public String getEtag()

This value is computed by the server based on the version of the deployment in storage, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

This value is computed by the server based on the version of the deployment in storage, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

The deployment resource name. Example: projects/123/deployments/my_deployment.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The deployment resource name. Example: projects/123/deployments/my_deployment.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOauthScopes(int index)

public String getOauthScopes(int index)

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The oauthScopes at the given index.

getOauthScopesBytes(int index)

public ByteString getOauthScopesBytes(int index)

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the oauthScopes at the given index.

getOauthScopesCount()

public int getOauthScopesCount()

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Returns
Type Description
int

The count of oauthScopes.

getOauthScopesList()

public ProtocolStringList getOauthScopesList()

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Returns
Type Description
ProtocolStringList

A list containing the oauthScopes.

hasAddOns()

public boolean hasAddOns()

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Returns
Type Description
boolean

Whether the addOns field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAddOns(AddOns value)

public Deployment.Builder mergeAddOns(AddOns value)

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Parameter
Name Description
value AddOns
Returns
Type Description
Deployment.Builder

mergeFrom(Deployment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Deployment.Builder
Overrides

setAddOns(AddOns value)

public Deployment.Builder setAddOns(AddOns value)

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Parameter
Name Description
value AddOns
Returns
Type Description
Deployment.Builder

setAddOns(AddOns.Builder builderForValue)

public Deployment.Builder setAddOns(AddOns.Builder builderForValue)

The Google Workspace Add-on configuration.

.google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;

Parameter
Name Description
builderForValue AddOns.Builder
Returns
Type Description
Deployment.Builder

setEtag(String value)

public Deployment.Builder setEtag(String value)

This value is computed by the server based on the version of the deployment in storage, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Deployment.Builder setEtagBytes(ByteString value)

This value is computed by the server based on the version of the deployment in storage, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 5;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Deployment.Builder
Overrides

setName(String value)

public Deployment.Builder setName(String value)

The deployment resource name. Example: projects/123/deployments/my_deployment.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Deployment.Builder setNameBytes(ByteString value)

The deployment resource name. Example: projects/123/deployments/my_deployment.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setOauthScopes(int index, String value)

public Deployment.Builder setOauthScopes(int index, String value)

The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.

repeated string oauth_scopes = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The oauthScopes to set.

Returns
Type Description
Deployment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Deployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Deployment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Deployment.Builder
Overrides