2.9.3 (latest) 2.9.2 2.8.1 2.7.2 2.6.0 2.5.1 2.4.1 2.1.2 2.0.1 1.35.2 1.34.1 1.33.4

```java
public abstract static class AbstractGoogleClient.Builder
```
Builder for [AbstractGoogleClient](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.services.AbstractGoogleClient.md.txt).

Implementation is not thread-safe.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> AbstractGoogleClient.Builder

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### Builder(HttpTransport transport, String rootUrl, String servicePath, ObjectParser objectParser, HttpRequestInitializer httpRequestInitializer)

```java
protected Builder(HttpTransport transport, String rootUrl, String servicePath, ObjectParser objectParser, HttpRequestInitializer httpRequestInitializer)
```
Returns an instance of a new builder.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `transport` | `com.google.api.client.http.HttpTransport` The transport to use for requests |
| `rootUrl` | `String` root URL of the service. Must end with a "/" |
| `servicePath` | `String` service path |
| `objectParser` | `com.google.api.client.util.ObjectParser` object parser or `null` for none |
| `httpRequestInitializer` | `com.google.api.client.http.HttpRequestInitializer` HTTP request initializer or `null` for none |

## Methods

### build()

```java
public abstract AbstractGoogleClient build()
```
Builds a new instance of [AbstractGoogleClient](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.services.AbstractGoogleClient.md.txt).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient` |   |

### getApplicationName()

```java
public final String getApplicationName()
```
Returns the application name to be used in the UserAgent header of each request or `
null` for none.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### getGoogleClientRequestInitializer()

```java
public final GoogleClientRequestInitializer getGoogleClientRequestInitializer()
```
Returns the Google client request initializer or `null` for none.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GoogleClientRequestInitializer` |   |

### getHttpRequestInitializer()

```java
public final HttpRequestInitializer getHttpRequestInitializer()
```
Returns the HTTP request initializer or `null` for none.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.api.client.http.HttpRequestInitializer` |   |

### getObjectParser()

```java
public ObjectParser getObjectParser()
```
Returns the object parser or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.api.client.util.ObjectParser` |   |

### getRootUrl()

```java
public final String getRootUrl()
```
Returns the URL-encoded root URL of the service, for example `
https://www.googleapis.com/`.

Must be URL-encoded and must end with a "/".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### getServicePath()

```java
public final String getServicePath()
```
Returns the URL-encoded service path of the service, for example `"tasks/v1/"`.

Must be URL-encoded and must end with a "/" and not begin with a "/". It is allowed to be
an empty string `""`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### getSuppressPatternChecks()

```java
public final boolean getSuppressPatternChecks()
```
Returns whether discovery pattern checks should be suppressed on required parameters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `boolean` |   |

### getSuppressRequiredParameterChecks()

```java
public final boolean getSuppressRequiredParameterChecks()
```
Returns whether discovery required parameter checks should be suppressed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `boolean` |   |

### getTransport()

```java
public final HttpTransport getTransport()
```
Returns the HTTP transport.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.api.client.http.HttpTransport` |   |

### setApplicationName(String applicationName)

```java
public AbstractGoogleClient.Builder setApplicationName(String applicationName)
```
Sets the application name to be used in the UserAgent header of each request or `null`
for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `applicationName` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setBatchPath(String batchPath)

```java
public AbstractGoogleClient.Builder setBatchPath(String batchPath)
```
Sets the URL-encoded batch path of the service, for example `"batch/tasks"`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `batchPath` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setGoogleClientRequestInitializer(GoogleClientRequestInitializer googleClientRequestInitializer)

```java
public AbstractGoogleClient.Builder setGoogleClientRequestInitializer(GoogleClientRequestInitializer googleClientRequestInitializer)
```
Sets the Google client request initializer or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `googleClientRequestInitializer` | `GoogleClientRequestInitializer` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setHttpRequestInitializer(HttpRequestInitializer httpRequestInitializer)

```java
public AbstractGoogleClient.Builder setHttpRequestInitializer(HttpRequestInitializer httpRequestInitializer)
```
Sets the HTTP request initializer or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `httpRequestInitializer` | `com.google.api.client.http.HttpRequestInitializer` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setRootUrl(String rootUrl)

```java
public AbstractGoogleClient.Builder setRootUrl(String rootUrl)
```
Sets the URL-encoded root URL of the service, for example `https://www.googleapis.com/`
.

If the specified root URL does not end with a "/" then a "/" is added to the end.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `rootUrl` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setServicePath(String servicePath)

```java
public AbstractGoogleClient.Builder setServicePath(String servicePath)
```
Sets the URL-encoded service path of the service, for example `"tasks/v1/"`.

It is allowed to be an empty string `""` or a forward slash `"/"`, if it is a
forward slash then it is treated as an empty string. This is determined when the library is
generated and normally should not be changed.

If the specified service path does not end with a "/" then a "/" is added to the end. If
the specified service path begins with a "/" then the "/" is removed.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `servicePath` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setSuppressAllChecks(boolean suppressAllChecks)

```java
public AbstractGoogleClient.Builder setSuppressAllChecks(boolean suppressAllChecks)
```
Suppresses all discovery pattern and required parameter checks.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `suppressAllChecks` | `boolean` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setSuppressPatternChecks(boolean suppressPatternChecks)

```java
public AbstractGoogleClient.Builder setSuppressPatternChecks(boolean suppressPatternChecks)
```
Sets whether discovery pattern checks should be suppressed on required parameters.

Default value is `false`.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `suppressPatternChecks` | `boolean` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks)

```java
public AbstractGoogleClient.Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks)
```
Sets whether discovery required parameter checks should be suppressed.

Default value is `false`.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `suppressRequiredParameterChecks` | `boolean` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |

### setUniverseDomain(String universeDomain)

```java
public AbstractGoogleClient.Builder setUniverseDomain(String universeDomain)
```
Sets the user configured Universe Domain value. This value will be used to try and construct
the endpoint to connect to GCP services.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `universeDomain` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AbstractGoogleClient.Builder` |   |