- 2.86.0 (latest)
- 2.84.0
- 2.83.0
- 2.82.0
- 2.81.0
- 2.79.0
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.10
- 2.3.1
- 2.2.16
public static final class Resource.Builder extends GeneratedMessage.Builder<Resource.Builder> implements ResourceOrBuilderAn entity that can have metadata. For example, a Docker image.
Protobuf type grafeas.v1beta1.Resource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Resource.BuilderImplements
ResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Resource build()| Returns | |
|---|---|
| Type | Description |
Resource |
|
buildPartial()
public Resource buildPartial()| Returns | |
|---|---|
| Type | Description |
Resource |
|
clear()
public Resource.Builder clear()| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
clearContentHash()
public Resource.Builder clearContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
clearName()
public Resource.Builder clearName()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
clearUri()
public Resource.Builder clearUri() Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
getContentHash()
public Hash getContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
Hash |
The contentHash. |
getContentHashBuilder()
public Hash.Builder getContentHashBuilder()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
Hash.Builder |
|
getContentHashOrBuilder()
public HashOrBuilder getContentHashOrBuilder()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
HashOrBuilder |
|
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Resource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUri()
public String getUri() Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes() Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasContentHash()
public boolean hasContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentHash field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeContentHash(Hash value)
public Resource.Builder mergeContentHash(Hash value)The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Hash |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Resource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
mergeFrom(Resource other)
public Resource.Builder mergeFrom(Resource other)| Parameter | |
|---|---|
| Name | Description |
other |
Resource |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
setContentHash(Hash value)
public Resource.Builder setContentHash(Hash value)The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Hash |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
setContentHash(Hash.Builder builderForValue)
public Resource.Builder setContentHash(Hash.Builder builderForValue)The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Hash.Builder |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
setName(String value)
public Resource.Builder setName(String value)The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Resource.Builder setNameBytes(ByteString value)The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
setUri(String value)
public Resource.Builder setUri(String value) Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public Resource.Builder setUriBytes(ByteString value) Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |