target.apidocs.com.google.api.services.gmail.Gmail.Builder.html Maven / Gradle / Ivy
Gmail.Builder (Gmail API v1-rev20240422-2.0.0)
com.google.api.services.gmail
Class Gmail.Builder
- java.lang.Object
-
- com.google.api.client.googleapis.services.AbstractGoogleClient.Builder
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
- com.google.api.services.gmail.Gmail.Builder
-
-
Constructor Summary
Constructors
Constructor and Description
Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Returns an instance of a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Gmail
build()
Builds a new instance of Gmail
.
Gmail.Builder
setApplicationName(String applicationName)
Gmail.Builder
setBatchPath(String batchPath)
Gmail.Builder
setGmailRequestInitializer(GmailRequestInitializer gmailRequestInitializer)
Set the GmailRequestInitializer
.
Gmail.Builder
setGoogleClientRequestInitializer(com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer)
Gmail.Builder
setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Gmail.Builder
setRootUrl(String rootUrl)
Gmail.Builder
setServicePath(String servicePath)
Gmail.Builder
setSuppressAllChecks(boolean suppressAllChecks)
Gmail.Builder
setSuppressPatternChecks(boolean suppressPatternChecks)
Gmail.Builder
setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks)
Gmail.Builder
setUniverseDomain(String universeDomain)
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
getJsonFactory, getObjectParser
-
-
Constructor Detail
-
Builder
public Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Returns an instance of a new builder.
- Parameters:
transport
- HTTP transport, which should normally be:
- Google App Engine:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
- Android:
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
- Java:
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
- Jackson:
com.google.api.client.json.jackson2.JacksonFactory
- Google GSON:
com.google.api.client.json.gson.GsonFactory
- Android Honeycomb or higher:
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for none
- Since:
- 1.7
-
Method Detail
-
build
public Gmail build()
Builds a new instance of Gmail
.
- Overrides:
build
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setRootUrl
public Gmail.Builder setRootUrl(String rootUrl)
- Overrides:
setRootUrl
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setServicePath
public Gmail.Builder setServicePath(String servicePath)
- Overrides:
setServicePath
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setBatchPath
public Gmail.Builder setBatchPath(String batchPath)
- Overrides:
setBatchPath
in class com.google.api.client.googleapis.services.AbstractGoogleClient.Builder
-
setHttpRequestInitializer
public Gmail.Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
- Overrides:
setHttpRequestInitializer
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setApplicationName
public Gmail.Builder setApplicationName(String applicationName)
- Overrides:
setApplicationName
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setSuppressPatternChecks
public Gmail.Builder setSuppressPatternChecks(boolean suppressPatternChecks)
- Overrides:
setSuppressPatternChecks
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setSuppressRequiredParameterChecks
public Gmail.Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks)
- Overrides:
setSuppressRequiredParameterChecks
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setSuppressAllChecks
public Gmail.Builder setSuppressAllChecks(boolean suppressAllChecks)
- Overrides:
setSuppressAllChecks
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setGmailRequestInitializer
public Gmail.Builder setGmailRequestInitializer(GmailRequestInitializer gmailRequestInitializer)
Set the GmailRequestInitializer
.
- Since:
- 1.12
-
setGoogleClientRequestInitializer
public Gmail.Builder setGoogleClientRequestInitializer(com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer)
- Overrides:
setGoogleClientRequestInitializer
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
-
setUniverseDomain
public Gmail.Builder setUniverseDomain(String universeDomain)
- Overrides:
setUniverseDomain
in class com.google.api.client.googleapis.services.AbstractGoogleClient.Builder
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy