Class Deployment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Deployment.Builder>
com.google.cloud.gsuiteaddons.v1.Deployment.Builder
All Implemented Interfaces:
DeploymentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Deployment

public static final class Deployment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Deployment.Builder> implements DeploymentOrBuilder
 A Google Workspace add-on deployment
 
Protobuf type google.cloud.gsuiteaddons.v1.Deployment
  • Method Summary

    Modifier and Type
    Method
    Description
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    addOauthScopesBytes(com.google.protobuf.ByteString value)
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
     
     
     
    The Google Workspace add-on configuration.
    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.
    The deployment resource name.
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    The Google Workspace add-on configuration.
    The Google Workspace add-on configuration.
    The Google Workspace add-on configuration.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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.
    com.google.protobuf.ByteString
    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.
    The deployment resource name.
    com.google.protobuf.ByteString
    The deployment resource name.
    getOauthScopes(int index)
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    com.google.protobuf.ByteString
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    int
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    com.google.protobuf.ProtocolStringList
    The list of Google OAuth scopes for which to request consent from the end user before executing an add-on endpoint.
    boolean
    The Google Workspace add-on configuration.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    The Google Workspace add-on configuration.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The Google Workspace add-on configuration.
    setAddOns(AddOns.Builder builderForValue)
    The Google Workspace add-on configuration.
    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.
    setEtagBytes(com.google.protobuf.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.
    setName(String value)
    The deployment resource name.
    setNameBytes(com.google.protobuf.ByteString value)
    The deployment resource name.
    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.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Deployment.Builder>
    • clear

      public Deployment.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Deployment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Deployment.Builder>
    • getDefaultInstanceForType

      public Deployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Deployment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Deployment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Deployment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Deployment.Builder>
    • mergeFrom

      public Deployment.Builder mergeFrom(Deployment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Deployment.Builder>
    • mergeFrom

      public Deployment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Deployment.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The deployment resource name.
       Example:  projects/123/deployments/my_deployment.
       
      string name = 1;
      Specified by:
      getName in interface DeploymentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The deployment resource name.
       Example:  projects/123/deployments/my_deployment.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Deployment.Builder setName(String value)
       The deployment resource name.
       Example:  projects/123/deployments/my_deployment.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Deployment.Builder clearName()
       The deployment resource name.
       Example:  projects/123/deployments/my_deployment.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Deployment.Builder setNameBytes(com.google.protobuf.ByteString value)
       The deployment resource name.
       Example:  projects/123/deployments/my_deployment.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getOauthScopesList

      public com.google.protobuf.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;
      Specified by:
      getOauthScopesList in interface DeploymentOrBuilder
      Returns:
      A list containing the oauthScopes.
    • 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;
      Specified by:
      getOauthScopesCount in interface DeploymentOrBuilder
      Returns:
      The count of oauthScopes.
    • getOauthScopes

      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;
      Specified by:
      getOauthScopes in interface DeploymentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The oauthScopes at the given index.
    • getOauthScopesBytes

      public com.google.protobuf.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;
      Specified by:
      getOauthScopesBytes in interface DeploymentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the oauthScopes at the given index.
    • setOauthScopes

      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:
      index - The index to set the value at.
      value - The oauthScopes to set.
      Returns:
      This builder for chaining.
    • addOauthScopes

      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;
      Parameters:
      value - The oauthScopes to add.
      Returns:
      This builder for chaining.
    • addAllOauthScopes

      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;
      Parameters:
      values - The oauthScopes to add.
      Returns:
      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:
      This builder for chaining.
    • addOauthScopesBytes

      public Deployment.Builder addOauthScopesBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes of the oauthScopes to add.
      Returns:
      This builder for chaining.
    • hasAddOns

      public boolean hasAddOns()
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
      Specified by:
      hasAddOns in interface DeploymentOrBuilder
      Returns:
      Whether the addOns field is set.
    • getAddOns

      public AddOns getAddOns()
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
      Specified by:
      getAddOns in interface DeploymentOrBuilder
      Returns:
      The addOns.
    • setAddOns

      public Deployment.Builder setAddOns(AddOns value)
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
    • setAddOns

      public Deployment.Builder setAddOns(AddOns.Builder builderForValue)
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
    • mergeAddOns

      public Deployment.Builder mergeAddOns(AddOns value)
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
    • clearAddOns

      public Deployment.Builder clearAddOns()
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
    • getAddOnsBuilder

      public AddOns.Builder getAddOnsBuilder()
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
    • getAddOnsOrBuilder

      public AddOnsOrBuilder getAddOnsOrBuilder()
       The Google Workspace add-on configuration.
       
      .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
      Specified by:
      getAddOnsOrBuilder in interface DeploymentOrBuilder
    • 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;
      Specified by:
      getEtag in interface DeploymentOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.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;
      Specified by:
      getEtagBytes in interface DeploymentOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      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;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setEtagBytes

      public Deployment.Builder setEtagBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.