Class ReportInstanceInfoRequest.Builder (1.42.0)

public static final class ReportInstanceInfoRequest.Builder extends GeneratedMessageV3.Builder<ReportInstanceInfoRequest.Builder> implements ReportInstanceInfoRequestOrBuilder

Request for notebook instances to report information to Notebooks API.

Protobuf type google.cloud.notebooks.v1.ReportInstanceInfoRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportInstanceInfoRequest build()
Returns
Type Description
ReportInstanceInfoRequest

buildPartial()

public ReportInstanceInfoRequest buildPartial()
Returns
Type Description
ReportInstanceInfoRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

public ReportInstanceInfoRequest.Builder clearMetadata()
Returns
Type Description
ReportInstanceInfoRequest.Builder

clearName()

public ReportInstanceInfoRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

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

Returns
Type Description
ReportInstanceInfoRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVmId()

public ReportInstanceInfoRequest.Builder clearVmId()

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportInstanceInfoRequest.Builder

This builder for chaining.

clone()

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

containsMetadata(String key)

public boolean containsMetadata(String key)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ReportInstanceInfoRequest getDefaultInstanceForType()
Returns
Type Description
ReportInstanceInfoRequest

getDescriptorForType()

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

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
Map<String,String>

getMetadataCount()

public int getMetadataCount()

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Returns
Type Description
int

getMetadataMap()

public Map<String,String> getMetadataMap()

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Returns
Type Description
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

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

Returns
Type Description
ByteString

The bytes for name.

getVmId()

public String getVmId()

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The vmId.

getVmIdBytes()

public ByteString getVmIdBytes()

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for vmId.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReportInstanceInfoRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllMetadata(Map<String,String> values)

public ReportInstanceInfoRequest.Builder putAllMetadata(Map<String,String> values)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ReportInstanceInfoRequest.Builder

putMetadata(String key, String value)

public ReportInstanceInfoRequest.Builder putMetadata(String key, String value)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
ReportInstanceInfoRequest.Builder

removeMetadata(String key)

public ReportInstanceInfoRequest.Builder removeMetadata(String key)

The metadata reported to Notebooks API. This will be merged to the instance metadata store

map<string, string> metadata = 3;

Parameter
Name Description
key String
Returns
Type Description
ReportInstanceInfoRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ReportInstanceInfoRequest.Builder setName(String value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReportInstanceInfoRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReportInstanceInfoRequest.Builder setNameBytes(ByteString value)

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReportInstanceInfoRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmId(String value)

public ReportInstanceInfoRequest.Builder setVmId(String value)

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The vmId to set.

Returns
Type Description
ReportInstanceInfoRequest.Builder

This builder for chaining.

setVmIdBytes(ByteString value)

public ReportInstanceInfoRequest.Builder setVmIdBytes(ByteString value)

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for vmId to set.

Returns
Type Description
ReportInstanceInfoRequest.Builder

This builder for chaining.