public static final class CreateMonitoredProjectRequest.Builder extends GeneratedMessageV3.Builder<CreateMonitoredProjectRequest.Builder> implements CreateMonitoredProjectRequestOrBuilder
Request for the CreateMonitoredProject
method.
Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateMonitoredProjectRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateMonitoredProjectRequest build()
buildPartial()
public CreateMonitoredProjectRequest buildPartial()
clear()
public CreateMonitoredProjectRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateMonitoredProjectRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMonitoredProject()
public CreateMonitoredProjectRequest.Builder clearMonitoredProject()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateMonitoredProjectRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public CreateMonitoredProjectRequest.Builder clearParent()
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public CreateMonitoredProjectRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateMonitoredProjectRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMonitoredProject()
public MonitoredProject getMonitoredProject()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
getMonitoredProjectBuilder()
public MonitoredProject.Builder getMonitoredProjectBuilder()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
getMonitoredProjectOrBuilder()
public MonitoredProjectOrBuilder getMonitoredProjectOrBuilder()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
getParent()
public String getParent()
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for parent.
|
hasMonitoredProject()
public boolean hasMonitoredProject()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the monitoredProject field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateMonitoredProjectRequest other)
public CreateMonitoredProjectRequest.Builder mergeFrom(CreateMonitoredProjectRequest other)
public CreateMonitoredProjectRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateMonitoredProjectRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeMonitoredProject(MonitoredProject value)
public CreateMonitoredProjectRequest.Builder mergeMonitoredProject(MonitoredProject value)
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateMonitoredProjectRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateMonitoredProjectRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMonitoredProject(MonitoredProject value)
public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject value)
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
setMonitoredProject(MonitoredProject.Builder builderForValue)
public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject.Builder builderForValue)
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
setParent(String value)
public CreateMonitoredProjectRequest.Builder setParent(String value)
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | String
The parent to set.
|
setParentBytes(ByteString value)
public CreateMonitoredProjectRequest.Builder setParentBytes(ByteString value)
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateMonitoredProjectRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateMonitoredProjectRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides