Class FrameworkReference.Builder (0.1.0)

public static final class FrameworkReference.Builder extends GeneratedMessageV3.Builder<FrameworkReference.Builder> implements FrameworkReferenceOrBuilder

FrameworkReference contains the reference of a framework.

Protobuf type google.cloud.cloudsecuritycompliance.v1.FrameworkReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FrameworkReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FrameworkReference.Builder
Overrides

build()

public FrameworkReference build()
Returns
Type Description
FrameworkReference

buildPartial()

public FrameworkReference buildPartial()
Returns
Type Description
FrameworkReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FrameworkReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FrameworkReference.Builder
Overrides

clearFramework()

public FrameworkReference.Builder clearFramework()

Required. In the format: organizations/{org}/locations/{location}/frameworks/{framework}

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

Returns
Type Description
FrameworkReference.Builder

This builder for chaining.

clearMajorRevisionId()

public FrameworkReference.Builder clearMajorRevisionId()

Optional. Major revision id of the framework. If not specified, corresponds to the latest revision of the framework.

optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FrameworkReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FrameworkReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FrameworkReference.Builder
Overrides

clone()

public FrameworkReference.Builder clone()
Returns
Type Description
FrameworkReference.Builder
Overrides

getDefaultInstanceForType()

public FrameworkReference getDefaultInstanceForType()
Returns
Type Description
FrameworkReference

getDescriptorForType()

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

getFramework()

public String getFramework()

Required. In the format: organizations/{org}/locations/{location}/frameworks/{framework}

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

Returns
Type Description
String

The framework.

getFrameworkBytes()

public ByteString getFrameworkBytes()

Required. In the format: organizations/{org}/locations/{location}/frameworks/{framework}

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

Returns
Type Description
ByteString

The bytes for framework.

getMajorRevisionId()

public long getMajorRevisionId()

Optional. Major revision id of the framework. If not specified, corresponds to the latest revision of the framework.

optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The majorRevisionId.

hasMajorRevisionId()

public boolean hasMajorRevisionId()

Optional. Major revision id of the framework. If not specified, corresponds to the latest revision of the framework.

optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the majorRevisionId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FrameworkReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FrameworkReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FrameworkReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FrameworkReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FrameworkReference.Builder
Overrides

setFramework(String value)

public FrameworkReference.Builder setFramework(String value)

Required. In the format: organizations/{org}/locations/{location}/frameworks/{framework}

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

Parameter
Name Description
value String

The framework to set.

Returns
Type Description
FrameworkReference.Builder

This builder for chaining.

setFrameworkBytes(ByteString value)

public FrameworkReference.Builder setFrameworkBytes(ByteString value)

Required. In the format: organizations/{org}/locations/{location}/frameworks/{framework}

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

Parameter
Name Description
value ByteString

The bytes for framework to set.

Returns
Type Description
FrameworkReference.Builder

This builder for chaining.

setMajorRevisionId(long value)

public FrameworkReference.Builder setMajorRevisionId(long value)

Optional. Major revision id of the framework. If not specified, corresponds to the latest revision of the framework.

optional int64 major_revision_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The majorRevisionId to set.

Returns
Type Description
FrameworkReference.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FrameworkReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FrameworkReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FrameworkReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FrameworkReference.Builder
Overrides