Class CreateDashboardRequest.Builder (2.32.0)

public static final class CreateDashboardRequest.Builder extends GeneratedMessageV3.Builder<CreateDashboardRequest.Builder> implements CreateDashboardRequestOrBuilder

The CreateDashboard request.

Protobuf type google.monitoring.dashboard.v1.CreateDashboardRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateDashboardRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

build()

public CreateDashboardRequest build()
Returns
TypeDescription
CreateDashboardRequest

buildPartial()

public CreateDashboardRequest buildPartial()
Returns
TypeDescription
CreateDashboardRequest

clear()

public CreateDashboardRequest.Builder clear()
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

clearDashboard()

public CreateDashboardRequest.Builder clearDashboard()

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateDashboardRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateDashboardRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDashboardRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

clearParent()

public CreateDashboardRequest.Builder clearParent()

Required. The project on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name.

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

Returns
TypeDescription
CreateDashboardRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateDashboardRequest.Builder clearValidateOnly()

If set, validate the request and preview the review, but do not actually save it.

bool validate_only = 3;

Returns
TypeDescription
CreateDashboardRequest.Builder

This builder for chaining.

clone()

public CreateDashboardRequest.Builder clone()
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

getDashboard()

public Dashboard getDashboard()

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Dashboard

The dashboard.

getDashboardBuilder()

public Dashboard.Builder getDashboardBuilder()

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Dashboard.Builder

getDashboardOrBuilder()

public DashboardOrBuilder getDashboardOrBuilder()

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DashboardOrBuilder

getDefaultInstanceForType()

public CreateDashboardRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDashboardRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The project on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

If set, validate the request and preview the review, but do not actually save it.

bool validate_only = 3;

Returns
TypeDescription
boolean

The validateOnly.

hasDashboard()

public boolean hasDashboard()

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the dashboard field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDashboard(Dashboard value)

public CreateDashboardRequest.Builder mergeDashboard(Dashboard value)

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDashboard
Returns
TypeDescription
CreateDashboardRequest.Builder

mergeFrom(CreateDashboardRequest other)

public CreateDashboardRequest.Builder mergeFrom(CreateDashboardRequest other)
Parameter
NameDescription
otherCreateDashboardRequest
Returns
TypeDescription
CreateDashboardRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDashboardRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateDashboardRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDashboardRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

setDashboard(Dashboard value)

public CreateDashboardRequest.Builder setDashboard(Dashboard value)

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueDashboard
Returns
TypeDescription
CreateDashboardRequest.Builder

setDashboard(Dashboard.Builder builderForValue)

public CreateDashboardRequest.Builder setDashboard(Dashboard.Builder builderForValue)

Required. The initial dashboard specification.

.google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueDashboard.Builder
Returns
TypeDescription
CreateDashboardRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateDashboardRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

setParent(String value)

public CreateDashboardRequest.Builder setParent(String value)

Required. The project on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateDashboardRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDashboardRequest.Builder setParentBytes(ByteString value)

Required. The project on which to execute the request. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateDashboardRequest.Builder

This builder for chaining.

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

public CreateDashboardRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDashboardRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDashboardRequest.Builder
Overrides

setValidateOnly(boolean value)

public CreateDashboardRequest.Builder setValidateOnly(boolean value)

If set, validate the request and preview the review, but do not actually save it.

bool validate_only = 3;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateDashboardRequest.Builder

This builder for chaining.