Class Scope.Builder (0.1.0)

public static final class Scope.Builder extends GeneratedMessage.Builder<Scope.Builder> implements ScopeOrBuilder

Specifies the report scope.

Protobuf type google.cloud.appoptimize.v1beta.Scope

Implements

ScopeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Scope build()
Returns
Type Description
Scope

buildPartial()

public Scope buildPartial()
Returns
Type Description
Scope

clear()

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

clearApplication()

public Scope.Builder clearApplication()

Required. An App Hub Application to fetch data from.

Format: "projects/{project}/locations/{location}/applications/{application}".

string application = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Scope.Builder

This builder for chaining.

clearProject()

public Scope.Builder clearProject()

Required. A Google Cloud Platform project to fetch data from.

Format: "projects/{project}".

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Scope.Builder

This builder for chaining.

clearScope()

public Scope.Builder clearScope()
Returns
Type Description
Scope.Builder

getApplication()

public String getApplication()

Required. An App Hub Application to fetch data from.

Format: "projects/{project}/locations/{location}/applications/{application}".

string application = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The application.

getApplicationBytes()

public ByteString getApplicationBytes()

Required. An App Hub Application to fetch data from.

Format: "projects/{project}/locations/{location}/applications/{application}".

string application = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for application.

getDefaultInstanceForType()

public Scope getDefaultInstanceForType()
Returns
Type Description
Scope

getDescriptorForType()

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

getProject()

public String getProject()

Required. A Google Cloud Platform project to fetch data from.

Format: "projects/{project}".

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Required. A Google Cloud Platform project to fetch data from.

Format: "projects/{project}".

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for project.

getScopeCase()

public Scope.ScopeCase getScopeCase()
Returns
Type Description
Scope.ScopeCase

hasApplication()

public boolean hasApplication()

Required. An App Hub Application to fetch data from.

Format: "projects/{project}/locations/{location}/applications/{application}".

string application = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the application field is set.

hasProject()

public boolean hasProject()

Required. A Google Cloud Platform project to fetch data from.

Format: "projects/{project}".

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the project field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Scope other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setApplication(String value)

public Scope.Builder setApplication(String value)

Required. An App Hub Application to fetch data from.

Format: "projects/{project}/locations/{location}/applications/{application}".

string application = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The application to set.

Returns
Type Description
Scope.Builder

This builder for chaining.

setApplicationBytes(ByteString value)

public Scope.Builder setApplicationBytes(ByteString value)

Required. An App Hub Application to fetch data from.

Format: "projects/{project}/locations/{location}/applications/{application}".

string application = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for application to set.

Returns
Type Description
Scope.Builder

This builder for chaining.

setProject(String value)

public Scope.Builder setProject(String value)

Required. A Google Cloud Platform project to fetch data from.

Format: "projects/{project}".

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The project to set.

Returns
Type Description
Scope.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public Scope.Builder setProjectBytes(ByteString value)

Required. A Google Cloud Platform project to fetch data from.

Format: "projects/{project}".

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
Scope.Builder

This builder for chaining.