Struct google_api_proto::google::chromeos::moblab::v1beta1::build_service_client::BuildServiceClient
source · pub struct BuildServiceClient<T> { /* private fields */ }
Expand description
Manages Chrome OS build services.
Implementations§
source§impl<T> BuildServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> BuildServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> BuildServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn list_build_targets(
&mut self,
request: impl IntoRequest<ListBuildTargetsRequest>,
) -> Result<Response<ListBuildTargetsResponse>, Status>
pub async fn list_build_targets( &mut self, request: impl IntoRequest<ListBuildTargetsRequest>, ) -> Result<Response<ListBuildTargetsResponse>, Status>
Lists all build targets that a user has access to.
sourcepub async fn list_models(
&mut self,
request: impl IntoRequest<ListModelsRequest>,
) -> Result<Response<ListModelsResponse>, Status>
pub async fn list_models( &mut self, request: impl IntoRequest<ListModelsRequest>, ) -> Result<Response<ListModelsResponse>, Status>
Lists all models for the given build target.
sourcepub async fn list_builds(
&mut self,
request: impl IntoRequest<ListBuildsRequest>,
) -> Result<Response<ListBuildsResponse>, Status>
pub async fn list_builds( &mut self, request: impl IntoRequest<ListBuildsRequest>, ) -> Result<Response<ListBuildsResponse>, Status>
Lists all builds for the given build target and model in descending order for the milestones and build versions.
sourcepub async fn check_build_stage_status(
&mut self,
request: impl IntoRequest<CheckBuildStageStatusRequest>,
) -> Result<Response<CheckBuildStageStatusResponse>, Status>
pub async fn check_build_stage_status( &mut self, request: impl IntoRequest<CheckBuildStageStatusRequest>, ) -> Result<Response<CheckBuildStageStatusResponse>, Status>
Checks the stage status for a given build artifact in a partner Google Cloud Storage bucket.
sourcepub async fn stage_build(
&mut self,
request: impl IntoRequest<StageBuildRequest>,
) -> Result<Response<Operation>, Status>
pub async fn stage_build( &mut self, request: impl IntoRequest<StageBuildRequest>, ) -> Result<Response<Operation>, Status>
Stages a given build artifact from a internal Google Cloud Storage bucket to a partner Google Cloud Storage bucket. The stage will be skipped if all the objects in the partner bucket are the same as in the internal bucket. Operation <response:[StageBuildResponse][google.chromeos.moblab.v1beta1.StageBuildResponse], metadata: [StageBuildMetadata][google.chromeos.moblab.v1beta1.StageBuildMetadata]>
sourcepub async fn find_most_stable_build(
&mut self,
request: impl IntoRequest<FindMostStableBuildRequest>,
) -> Result<Response<FindMostStableBuildResponse>, Status>
pub async fn find_most_stable_build( &mut self, request: impl IntoRequest<FindMostStableBuildRequest>, ) -> Result<Response<FindMostStableBuildResponse>, Status>
Finds the most stable build for the given build target. The definition of the most stable build is determined by evaluating the following rule in order until one is true. If none are true, then there is no stable build and it will return an empty response.
Evaluation rules:
- Stable channel build with label “Live”
- Beta channel build with label “Live”
- Dev channel build with label “Live”
- Most recent stable channel build with build status Pass
- Most recent beta channel build with build status Pass
- Most recent dev channel build with build status Pass
Trait Implementations§
source§impl<T: Clone> Clone for BuildServiceClient<T>
impl<T: Clone> Clone for BuildServiceClient<T>
source§fn clone(&self) -> BuildServiceClient<T>
fn clone(&self) -> BuildServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for BuildServiceClient<T>
impl<T> RefUnwindSafe for BuildServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for BuildServiceClient<T>where
T: Send,
impl<T> Sync for BuildServiceClient<T>where
T: Sync,
impl<T> Unpin for BuildServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for BuildServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request