Class GoogleArtifactAnalysis.Builder (0.42.0)

public static final class GoogleArtifactAnalysis.Builder extends GeneratedMessage.Builder<GoogleArtifactAnalysis.Builder> implements GoogleArtifactAnalysisOrBuilder

Google Artifact Analysis configurations.

Protobuf type google.cloud.developerconnect.v1.GoogleArtifactAnalysis

Static Methods

getDescriptor()

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

Methods

build()

public GoogleArtifactAnalysis build()
Returns
Type Description
GoogleArtifactAnalysis

buildPartial()

public GoogleArtifactAnalysis buildPartial()
Returns
Type Description
GoogleArtifactAnalysis

clear()

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

clearProjectId()

public GoogleArtifactAnalysis.Builder clearProjectId()

Required. The project id of the project where the provenance is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GoogleArtifactAnalysis.Builder

This builder for chaining.

getDefaultInstanceForType()

public GoogleArtifactAnalysis getDefaultInstanceForType()
Returns
Type Description
GoogleArtifactAnalysis

getDescriptorForType()

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

getProjectId()

public String getProjectId()

Required. The project id of the project where the provenance is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The project id of the project where the provenance is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleArtifactAnalysis other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setProjectId(String value)

public GoogleArtifactAnalysis.Builder setProjectId(String value)

Required. The project id of the project where the provenance is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
GoogleArtifactAnalysis.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public GoogleArtifactAnalysis.Builder setProjectIdBytes(ByteString value)

Required. The project id of the project where the provenance is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
GoogleArtifactAnalysis.Builder

This builder for chaining.