Class Deployment.Builder (2.40.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
TypeDescription
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
NameDescription
valuesIterable<String>

The oauthScopes to add.

Returns
TypeDescription
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
NameDescription
valueString

The oauthScopes to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the oauthScopes to add.

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

build()

public Deployment build()
Returns
TypeDescription
Deployment

buildPartial()

public Deployment buildPartial()
Returns
TypeDescription
Deployment

clear()

public Deployment.Builder clear()
Returns
TypeDescription
Deployment.Builder
Overrides

clearAddOns()

public Deployment.Builder clearAddOns()

The Google Workspace Add-on configuration.

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

Returns
TypeDescription
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
TypeDescription
Deployment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Deployment.Builder
Overrides

clearName()

public Deployment.Builder clearName()

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

string name = 1;

Returns
TypeDescription
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
TypeDescription
Deployment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Deployment.Builder
Overrides

clone()

public Deployment.Builder clone()
Returns
TypeDescription
Deployment.Builder
Overrides

getAddOns()

public AddOns getAddOns()

The Google Workspace Add-on configuration.

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

Returns
TypeDescription
AddOns

The addOns.

getAddOnsBuilder()

public AddOns.Builder getAddOnsBuilder()

The Google Workspace Add-on configuration.

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

Returns
TypeDescription
AddOns.Builder

getAddOnsOrBuilder()

public AddOnsOrBuilder getAddOnsOrBuilder()

The Google Workspace Add-on configuration.

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

Returns
TypeDescription
AddOnsOrBuilder

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
TypeDescription
Deployment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the addOns field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAddOns
Returns
TypeDescription
Deployment.Builder

mergeFrom(Deployment other)

public Deployment.Builder mergeFrom(Deployment other)
Parameter
NameDescription
otherDeployment
Returns
TypeDescription
Deployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Deployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Deployment.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Deployment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Deployment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAddOns
Returns
TypeDescription
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
NameDescription
builderForValueAddOns.Builder
Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The oauthScopes to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Deployment.Builder
Overrides